LPaintEffect::DrawPattern

Summary

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

Syntax

#include "ltwrappr.h"

virtual L_INT LPaintEffect::DrawPattern(pRect, uStyle)

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.