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)

Platforms

Win32, x64.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTDIS
LTEFX

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:

Class Members

Topics:

Implementing Special Effects

Example

For an example, refer to LPaintEffect::DrawFrame.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help