Xref: utzoo comp.sys.ibm.pc:30099 alt.msdos.programmer:131 comp.lang.c:19320 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cs.dal.ca!aucs!880716a From: 880716a@aucs.UUCP (Dave Astels) Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer,comp.lang.c Subject: Re: MS QC _getimage() Message-ID: <1943@aucs.UUCP> Date: 12 Jun 89 12:45:17 GMT References: Reply-To: 880716a@aucs.UUCP (Dave Astels) Organization: School of Computer Science, Acadia Univ., Nova Scotia Lines: 27 In article jjoshua@topaz.rutgers.edu (Jon Joshua) writes: > >In MS QC 2.0, _getimage() and _putimage() are great ways of blasting >data onto the screen. I was wondering how the data is kept in memory. The format is as follows: 1 word (2 bytes) specifies the width in pixels of the image 1 word specifies the height in pixels the data follows, raster scan order. I found _getimage() & _putimage() to be handy for manipulating parts of the screen. For instance, there is no way to write text to the screen with a halftone ANDed with it (to create gray shaded text for unselectable menu option). Just write the text as usual, use _getimage() to grap it, AND the data with the appropriate mask, and _putimage() it back. Incidentally, the same data format is used with GetImage & PutImage in Turbo Pascal (v 5.0 at least). I've played with this quite a bit, so if you have any furthur questions, just ask. -Dave 880716a@Adadia 880716a@aucs.UUCP