Article View: comp.windows.ms
Article #14103Re: Bitmaps under Windows
From: Bill Turner
Date: Wed, 28 Feb 1990 19:35
Date: Wed, 28 Feb 1990 19:35
16 lines
1309 bytes
1309 bytes
> We are in the process of porting some Macintosh code to Windows and are > having some trouble with bitmaps. On the Macintosh, I an able to setup > a bitmap that points to a particular address in memory and then BLT to > or from that bitmap. In the application we are writing, a buffer > containing bitmap data, and the organization of that data are being > passed to a routine that wants to BLT that data either to another > location in memory or to a window. Is it possible to create a device > context for the source bitmap and then associate the buffer memory with > that context without having Windows allocate the bits when the device > context is created? Once the memory DC has been created, you can use SelectObject(hMemDC, hBitmap) to change the bitmap used, just as you would with any other drawing object. --Bill Turner (bturner@hp-pcd.hp.com) HP Interface Technology Operation
Technical Details
Message-ID:
<106580083@hpcvlx.cv.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturnerReferences:
<142@btree.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.cv.hp.com (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Bitmaps under Windows Message-ID: <106580083@hpcvlx.cv.hp.com> Date: 28 Feb 90 19:35:01 GMT References: <142@btree.uucp> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 16