RE: Win32Dib: How To Question
Brian Broker wrote:
> I just discovered the answer to this question while working on the
> updated FreeImage wrapper. You can copyBlt(PixmapID,0,0,hDIB) to put
> your dib into a Pixmap. Because hDIB will not be a valid Win32Lib
> control, getDC will assume it is the handle of a bitmap and use
> CreateCompatibleDC to allow the blit.
Yes, that is one of the solutions. Blitting from and to Pixmaps (or other
controls) is not the problem. The problem is that you have to create a Pixmap,
and that you can't draw to a bitmap directly. A nice solution would be if you
could wrap the bitmap in a Win32Lib-control, just like you can wrap a
Windows-created control using the subClassControl-function.
--
tommy online: http://users.pandora.be/tommycarlier
|
Not Categorized, Please Help
|
|