| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | masking |
Hi Michael, MR> With WinDrawBitmap is MR> there anyway to specify a certain color as a "mask" or a way to facilitate MR> the creation of a mask with windrawbitmap? If I understand your question correct: Yes Here's an example which draws a bitmap either normal or in halftone mode (bitmap foreground OR'ed with gray) hbm=GpiLoadBitmap(hps, NULLHANDLE, MyBitMapID, 32L, 32L); ulDbm_Mode = ( IsValid == TRUE ? 0 : DBM_HALFTONE ); WinDrawBitmap(hps, hbm, NULL, &ptl, 0L, 7L, DBM_NORMAL | ulDbm_Mode); 0L and 7L are background and foreground colors. DBM halftone tells OS/2 how the colormask should be used. There are multiple ways. Don't forget to reset the drawing mode by GpiSetPattern(hps, PATSYM_DEFAULT); Good luck, Johan. --- The-Box Point 0.15+ PC* Origin: Ainex-BBS gives points Internet access (2:283/512.16) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 283/512 280/801 24/24 396/1 3615/50 229/2 12/2442 711/409 54/54 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.