Started by Chris Holbrook, March 29, 2010, 11:44:32 PM
0 Members and 1 Guest are viewing this topic.
l = GdipSaveImageToFile (byval himage, byval ucode$(savefilename + $nul), EncoderCLSID, byval %NULL)
hdc = getdc(cb.hndl) l = GdipCreatefromHDC ( hDC, pGraphics) if l then sGDIPfn = "GDIPCreatefromHDC": gosub gdiperror else l = GdipDrawImageRectI(pGraphics, himage, ofsX, ofsY, tX, tY) if l then sGDIPfn = "GdipDrawImageRectI": gosub gdiperror end if getclientrect cb.hndl, r w = r.nright - r.nleft h = r.nbottom - r.ntop ? str$(w)+str$(h) + " " + str$(pgraphics) + str$(pbitmap) l = GdipCreateBitmapFromGraphics ( byval w, byval h, byval pgraphics, pbitmap) if l then sGDIPfn = "GDIPCreateBitmapFromGraphics": gosub gdiperror ' l = GdipSaveImageToFile (byval pbitmap, byval ucode$(savefilename + $nul), EncoderCLSID, byval %NULL)
Quote from: Patrice Terrier on March 30, 2010, 06:54:52 PMYes GDI+ bitmaps and GDI+ images are synonym, as long as they are using lowercase in the API name.HBITMAP refers to a GDI bitmap.And GdipCreateBitmapFromGdiDib is to deal with DIB (GDI, GDIPLUS, and OpenGL)....
Page created in 0.227 seconds with 21 queries.