1. Re: Bernie Ryan: using output from win32eru --correction
- Posted by Bernie Ryan <xotron at bluefrog.com> Oct 23, 2006
- 484 views
Judith Evans wrote: > > This should have been: > > I've been sent a bitmap and icon built from your win32eru package with > instructions > how to use it. I'm placing the icon on a pixmap where I have used > setWindowBackColor. > In my code I have setTransparentColor(color) where color is the same value > as > the setWindowBackColor. I copyBlt the pixmap to the window. The icon and > bitmap > do not seem to respond to setTransparentColor > because they show the graphic in a white box. Can you advise me what I need > to do? > > Thanks, > > judith evans judith: Be sure the user is using the correct ROP code. -- The /b ROP (raster operation) specifies how to combine the source with -- the destination. The codes are: -- -- /li /b SrcCopy dest = source -- /li /b SrcPaint dest = source OR dest -- /li /b SrcAnd dest = source AND dest -- /li /b SrcInvert dest = source XOR dest -- /li /b SrcErase dest = source AND (NOT dest) -- /li /b NotSrcCopy dest = (NOT source) -- /li /b NotSrcErase dest = (NOT src) AND (NOT dest) -- /li /b MergeCopy dest = (source AND pattern) -- /li /b MergePaint dest = (NOT source) OR dest -- /li /b PatCopy dest = pattern -- /li /b PatPaint dest = dest OR (pattern OR (NOT source)) -- /li /b PatInvert dest = pattern XOR dest -- /li /b DstInvert dest = (NOT dest) -- /li /b Blackness dest = BLACK -- /li /b Whiteness dest = WHITE Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan