Re: Win32lib Pixmap
Mark wrote:
> I can't figure out where to look for the actual address
> to write to.
It would help if you had a good Win32 programming text; I *think* the latest
Petzold book goes into DIBs in mind-numbing detail.
You should also have the Win32 Programmer's Reference, which is available
through a link on the RDS site.
The GetObject function can be used to obtain a filled-in DIBSECTION, which
contains the header information of the DIB. The first chunk of information
is a BITMAP section, which contains a pointer to the bits. You can also use
the GetDIBits/SetDIBits function to get and set bits.
> I assume that I have to use another routine to actually
> get the DIB to show up in the window, is that correct?
The Win32Lib function drawBitmap is used, which does a lot of setup, and
then calls BitBlt to display the DIB.
Hope this helps! Coding the bitmap stuff was one of the most difficult parts
of Win32Lib.
-- David Cuny
|
Not Categorized, Please Help
|
|