lcPaint_BrushCreate Home

Creates a brush used to fill polygons in a graphics window.

 HANDLE lcPaint_BrushCreate (
   HANDLE hLcWnd,
   int Id,
   COLORREF Color,
   int Pattern,
   int Alpha
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Id
  Brush Identifier.
Color
  Filling color (COLORREF type).
Pattern
  Can be one of the following values:

Pattern Meaning
LC_FILL_SOLID Solid filling
LC_FILL_BDIAGONAL A 45-degree upward, left-to-right hatch
LC_FILL_CROSS Horizontal and vertical cross-hatch
LC_FILL_DIAGCROSS 45-degree crosshatch
LC_FILL_FDIAGONAL A 45-degree downward, left-to-right hatch
LC_FILL_HORIZONTAL Horizontal hatch
LC_FILL_VERTICAL Vertical hatch
Alpha
  Color transparency value (1-255). Transparent filling is possible only for pattern LC_FILL_SOLID.

Return Value

  Handle to the created brush.
If the function fails, the return value is NULL.

Remarks

  In order to enable color transparency (alhpa blending), you have to set property LC_PROP_WND_ALPHABLEND to TRUE .

See Also

  lcPaint_BrushSelectlcPaint_BrushSelectID