TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Michael Duffy
date: 1994-11-16 16:34:12
subject: Re: hpsMemory Bitmap questions

-=> Quoting Peter Fitzsimmons to Michael Duffy <=-

 MD> space during the WM_PAINT message.  No problem there.  My problem is that
 MD> I'm wanting to write directly to the surface of this 
 MD> bitmap.  It is created

 PF> GpiSetBitmapBits() is the shortest route.
Hmmm... My memory is slipping as to what my first post said exactly, but
here is the situation now.  I do use GpiSetBitmapBits to write to my 
bitmap, but the problem is this function only works with bitmaps associated
with a memory device context.  This leads to: 
   I want to work with a 640x480 bitmap.  I have a buffer in memory which
holds this info (8 bit format, so 307,200 bytes).  Then I have a 640x480
bitmap which I can use GpiSetBitmapBits to write to (another 307,200+ bytes).
Then I can copy this bitmap to the PS during the WM_PAINT message.  Of
course I haven't figured out the palette manager completely yet, so it
remaps colors when I write my buffer to the bitmap.  Therefore I can't 
read bits from the bitmap and make sense out of them, `cause they've all
been remapped.

Bummer.
Michael "Anxiously awaiting the DevCon CD" Duffy




... I understand Chicago was renamed "When? `95?"
--- 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™.