| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | hpsMemory Bitmap questions |
I hope someone can help me here. I have a bitmap created in memory which I copy to my Window's presentation space during the WM_PAINT message. No problem there. My problem is that I'm wanting to write directly to the surface of this bitmap. It is created using the GpiCreateBitmap() procedure, but I don't know how to obtain a pointer to the bitmap memory. Another question I have is in regards to the palette. I'm writing a paint program of sorts, and control over the palette is sorely needed. I know how to create a 256 entry palette, and even how to override the system colors so I know that I have full control. However, is there a way to determine where the system colors would go so that I could restrict myself to 200 or so colors and know that the system palette would remain intact? Should I just allocate 200 colors and let the GPI do the remapping? Is DIVE my answer, and if so how can I get programming info on it. I'm working with OS/2 2.11 if that makes a difference. Thanks, Michael Duffy --- GEcho 1.10+* Origin: Knight Mare 405 672 5644 (1:147/3006) 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: 147/3006 1032 3615/50 229/2 12/2442 711/409 54/54 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™.