LPaintEffect::DrawPattern

#include "ltwrappr.h"

virtual L_INT LPaintEffect::DrawPattern(pRect, uStyle)

Draws a rectangle into the target device context, and then fills the rectangle with the specified pattern.

Parameters

LPRECT pRect

The bounding rectangle.

L_UINT uStyle

The pattern style. Possible values are:

Value Meaning
EFX_PATTERN_SOLID Solid
EFX_PATTERN_HORZ_LINE Horizontal lines (==)
EFX_PATTERN_VERT_LINE Vertical lines (||)
EFX_PATTERN_DOWNWARD_DIAG Downward diagonal lines (//)
EFX_PATTERN_UPWARD_DIAG Upward diagonal lines (\\)
EFX_PATTERN_CROSS Cross line (++)
EFX_PATTERN_DIAG_CROSS Diagonal cross lines (XX)
EFX_PATTERN_MAX Diagonal cross lines (XX)

Platforms

Win32, x64.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LPaintEffect::DrawFrame.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help