Re: displaying bitmaps and deleting old bitmaps
- Posted by "Euman" <euman at bellsouth.net> Jan 05, 2004
- 356 views
Whatever the equivalent is for this (below) in Win32lib hdc = c_func(xGetDC, {hwnd}) memdc = c_func(xCreateCompatibleDC, {hdc}) hbit = c_func(xCreateCompatibleBitmap, {hdc, xScreen, yScreen}) junk = c_func(xSelectObject,{memdc, hbit}) if not c_func(xPatBlt, {memdc, 0, 0, vxScreen, vyScreen, PATCOPY}) then end if Euman ----- Original Message ----- From: "sixs" <sixs at ida.net> To: <EUforum at topica.com> Sent: Monday, January 05, 2004 11:24 AM Subject: displaying bitmaps and deleting old bitmaps > > > Hello. > I am getting different pictures from the internet. They are of various > sizes. I display one, then anoher and I may want to redisplay one I had > previously displayed. Code is : > hBitmap = loadBitmapFromFile(hSle9), > then in onPaint I am performing this code > > if db_table_size() > 0 then > if atom(hBitmap) then > deleteObject ( Bitmap54) > extent = getExtent(MyWin) > i = 241 > j = 42 > drawBitmap( MyWin, hBitmap, i, j) > end if > end if > The pictures are not of the same size and so some of the previous > picture is left on the screen. How do I remove the previous picture > without forcing each picture to be the same size, or must I edit each > picture in a photo program???? > Thanks for any help > > > > > TOPICA - Start your own email discussion group. FREE! > >