Sign in Join
FPDoc Onlineexperiment

TWidgetSet.CreatePatternBrush function

Member of TWidgetSetpublicIn unit InterfaceBase

Creates a logical brush, selectable into any DC.

Declaration

pascal
function CreatePatternBrush(ABitmap: HBITMAP): HBRUSH; virtual

Arguments

ABitmap

The bitmap to use for the brush.

Function result

The brush handle, zero on failure.

Description

The bitmap pattern is repeated for areas of larger width or height, it should allow for smooth transitions.

Monochrome bitmaps obtain the actual text (0) or background (1) color of the DC.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.