Thread View: comp.os.ms-windows.programmer.misc
3 messages
3 total messages
Started by Sakari Aaltonen
Fri, 22 Jan 1993 18:40
The HIWORD Is 0x99, But...
Author: Sakari Aaltonen
Date: Fri, 22 Jan 1993 18:40
Date: Fri, 22 Jan 1993 18:40
16 lines
1362 bytes
1362 bytes
I'm trying to move bitmaps and lines across the screen. For lines, the ROP2
mode NOTXORPEN seems to do the trick. However, the same (ternary) mode for
ROP, that is, for the bitmaps, doesn't have a name, so it's not in <windows.h>,
say. According to a Petzold formula, the HIWORD of the mode should be 0x99.
But what's the LOWORD? I have no idea what the low word even *means*. There
seem to be about 65536 possible values...
Would anyone be kind enough to look it up? No, I don't know where. Is this
what is meant by "clueless"?
Thanks in advance,
--
-----------------------------------------------------------------------------
Sakari Aaltonen Email: sakaria@vipunen.hut.fi
"Unlike Gnu, a public-domain Unix look-alike system, MINIX is not vaporware."
- Allen I.Holub, Dr.Dobb's, Jan '88 -
Re: The HIWORD Is 0x99, But...
Author: Ken Sykes
Date: Sun, 24 Jan 1993 22:44
Date: Sun, 24 Jan 1993 22:44
23 lines
1633 bytes
1633 bytes
In article <1993Jan22.184022.5155@nntp.hut.fi> sakaria@vipunen.hut.fi (Sakari Aaltonen) writes: >I'm trying to move bitmaps and lines across the screen. For lines, the ROP2 >mode NOTXORPEN seems to do the trick. However, the same (ternary) mode for >ROP, that is, for the bitmaps, doesn't have a name, so it's not in <windows.h>, >say. According to a Petzold formula, the HIWORD of the mode should be 0x99. >But what's the LOWORD? I have no idea what the low word even *means*. There >seem to be about 65536 possible values... > >Would anyone be kind enough to look it up? No, I don't know where. Is this >what is meant by "clueless"? > >Thanks in advance, >-- >----------------------------------------------------------------------------- >Sakari Aaltonen Email: sakaria@vipunen.hut.fi >"Unlike Gnu, a public-domain Unix look-alike system, MINIX is not vaporware." > - Allen I.Holub, Dr.Dobb's, Jan '88 - There is a section labeled "Ternary ROPs" in the SDK. Look for 99 in the left-hand column and then use the 32bit number associated with it. You may also find the discussion of computing custom ROPs based on how you want the Pattern, Source, and Destination to interact (in the same section.)
Re: The HIWORD Is 0x99, But...[SUMMARY]
Author: Sakari Aaltonen
Date: Tue, 26 Jan 1993 21:14
Date: Tue, 26 Jan 1993 21:14
19 lines
1630 bytes
1630 bytes
I posted a few days ago, wondering about the LOWORD for the ternary GDI mode whose HIWORD is 0x99. The only answer I got was from a Microsoft person, who told me to look it up in the SDK. Yeah, well, I wouldn't have asked if I had the SDK. However, I have just seen "Bodyguard" for the second time (Whitney Houston is too good for words). So, feeling happy and generous, I will share a pearl of wisdom: 0x99 would mean NOTXOR; SRCINVERT does a XOR; to get a NOTXOR you must first invert your bitmap and *then* SRCINVERT. Child's play. Now, if I only could figure out how to do FloodFills on a Laserjet... -- ----------------------------------------------------------------------------- Sakari Aaltonen Helsinki University of Technology Email: sakaria@vipunen.hut.fi --- You can't keep a Finn down without him getting all red in the face ----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads