please dont rip this site Prev Next

GetROP2 info  Overview  Group

The GetROP2 function retrieves the foreground mix mode of the specified device context. The mix mode specifies how the pen or interior color and the color already on the screen are combined to yield a new color.

int GetROP2(

    HDC hdc 

// handle of device context

   );

Parameters

hdc
Identifies the device context.

Return Values

If the function succeeds, the return value specifies the foreground mix mode.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Following are the foreground mix modes:

Mix mode

Description

R2_BLACK

Pixel is always 0.

R2_COPYPEN

Pixel is the pen color.

R2_MASKNOTPEN

Pixel is a combination of the colors common to both the screen and the inverse of the pen.

R2_MASKPEN

Pixel is a combination of the colors common to both the pen and the screen.

R2_MASKPENNOT

Pixel is a combination of the colors common to both the pen and the inverse of the screen.

R2_MERGENOTPEN

Pixel is a combination of the screen color and the inverse of the pen color.

R2_MERGEPEN

Pixel is a combination of the pen color and the screen color.

R2_MERGEPENNOT

Pixel is a combination of the pen color and the inverse of the screen color.

R2_NOP

Pixel remains unchanged.

R2_NOT

Pixel is the inverse of the screen color.

R2_NOTCOPYPEN

Pixel is the inverse of the pen color.

R2_NOTMASKPEN

Pixel is the inverse of the R2_MASKPEN color.

R2_NOTMERGEPEN

Pixel is the inverse of the R2_MERGEPEN color.

R2_NOTXORPEN

Pixel is the inverse of the R2_XORPEN color.

R2_WHITE

Pixel is always 1.

R2_XORPEN

Pixel is a combination of the colors in the pen and in the screen, but not in both.

See Also

SetROP2 


file: /Techref/os/win/api/win32/func/src/f38_5.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/5 17:31,
TOP NEW HELP FIND: 
18.191.14.50:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/func/src/f38_5.htm"> GetROP2</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to massmind.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .