please dont rip this site Prev Next

PatBlt info  Overview  Group

The PatBlt function paints the given rectangle using the brush that is currently selected into the specified device context. The brush color and the surface color(s) are combined by using the given raster operation.

BOOL PatBlt(

    HDC hdc,

// handle to device context

    int nXLeft,

// x-coord. of upper-left corner of rect. to be filled

    int nYLeft,

// y-coord. of upper-left corner of rect. to be filled

    int nWidth,

// width of rectangle to be filled

    int nHeight,

// height of rectangle to be filled

    DWORD dwRop 

// raster operation code

   );

Parameters

hdc
Identifies the device context.
nXLeft
Specifies the x-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
nYLeft
Specifies the y-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
nWidth
Specifies the width, in logical units, of the rectangle.
nHeight
Specifies the height, in logical units, of the rectangle.
dwRop
Specifies the raster operation code. This code may be one of the following values:

Value

Meaning

PATCOPY

Copies the specified pattern into the destination bitmap.

PATINVERT

Combines the colors of the specified pattern with the colors of the destination rectangle by using the Boolean OR operator.

DSTINVERT

Inverts the destination rectangle.

BLACKNESS

Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)

WHITENESS

Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)

Return Values

If the function succeeds, the return value is nonzero.

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

Remarks

The values of the dwRop parameter for this function are a limited subset of the full 256 ternary raster-operation codes; in particular, an operation code that refers to a source rectangle cannot be used.

Not all devices support the PatBlt function. For more information, see the description of the RC_BITBLT capability in the GetDeviceCaps function.

See Also

GetDeviceCaps 


file: /Techref/os/win/api/win32/func/src/f67_3.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/12/1 10:11,
TOP NEW HELP FIND: 
18.218.95.236:LOG IN

 ©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://techref.massmind.org/Techref/os/win/api/win32/func/src/f67_3.htm"> PatBlt</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 massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .