Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LPaintEffect::DrawPattern
#include "ltwrappr.h"
virtual L_INT LPaintEffect::DrawPattern(pRect, uStyle)
LPRECT pRect; |
/* the bounding rectangle */ |
L_UINT uStyle; |
/* the pattern style */ |
Draws a rectangle into the target device context, and then fills the rectangle with the specified pattern.
Parameter |
Description |
|
pRect |
The bounding rectangle. |
|
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) |
Win32, x64.
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
|
Topics: |
Example
For an example, refer to LPaintEffect::DrawFrame.