Article View: comp.windows.misc
Article #32help on windows programming
From: zpeng
Date: Wed, 04 Nov 1992 05:11
Date: Wed, 04 Nov 1992 05:11
23 lines
1387 bytes
1387 bytes
Hello there: I am doing graphics and image processing programming on Windows 3.1 I got a trouble to handle the BitMap(1 bit/pixel). Would any expert here give a help or tell me what book I should read or where I can download some sample code? The main problems are: 1. I have a bitmap data stored in an array, and I want to assign it to a window's Bitmap or Device Independent Bitmap. I have looked through the Window's Programmer's Reference, Vol 2: Functions. I found that I could use CreateBitmap() and CreatDIBitmap() function to create a handle of Bitmap, but how can I assign my data stored in an array to that handle. 2. If I got an handle of bitmap, how can I read rows, bytes, bits or pixels according to that handle. I couldn't find any Window's functions for that. Any advice, help, suggestion, comment, sample code are appreciated. -Fred P.S. Please respond to zpeng@u.washington.edu
Technical Details
Message-ID:
<1992Nov4.051146.17461@u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!milton.u.washington.edu!zpengShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!milton.u.washington.edu!zpeng From: zpeng@milton.u.washington.edu Newsgroups: comp.windows.misc Subject: help on windows programming Message-ID: <1992Nov4.051146.17461@u.washington.edu> Date: 4 Nov 92 05:11:46 GMT Article-I.D.: u.1992Nov4.051146.17461 Sender: news@u.washington.edu (USENET News System) Reply-To: zpeng@u.washington.edu Organization: University of Washington, Seattle Lines: 23