Re: Win 32Lib0.42: how use XPM graphics?
Thanks David, that does help; & I really like the html with your new
version!
Dan
On Wed, 13 Oct 1999 15:48:35 -0700, Cuny, David <David.Cuny at DSS.CA.GOV>
wrote:
>Dan Moyer wondered:
>
>> I assume this is another really silly question, but:
>> how do you use XPM graphics in a program?
>
>Typically, you convert the XPM to a EuBmp, and then a DIB.
>
>Here's a demo that works with the latest version of Win32Lib. If you set
>Trans=True, it uses transBlt instead of copyBlt. If you knew that the
>bitmaps would never overlap, you could set the background color to
>BrightWhite and have the same effect - only the code would run faster.
>
>I'm not pleased with the all the different names of graphics: bitmap,
>pixmap, euBitmap, dib, xpm - it gets downright confusing, even for me. I
>hope to clean it up some time.
>
>Another point that I'm not sure the documentation makes clear is that
>because bitmaps have no 'transparency' concept, when you convert an XPM
into
>a bitmap/dib, it *loses* it's transparency. The value passed in
>setTransparentColor tells Win32Lib what color to convert the transparent
>color into. In reverse, when using transBlt the value in
setTransparentColor
>tells Win32Lib to treat as if it were transparent.
>
>Hope this helps!
>
>-- David Cuny
>
|
Not Categorized, Please Help
|
|