JVCL Help:CreateBrushPattern
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: CreateBrushPattern function
[+] JvCustomItemViewer.pas Functions
Search in JVCL Help
Search in all projectsSummary
Creates a bitmap from a two-color pattern.
Pascal
run\JvCustomItemViewer.pas
functionCreateBrushPattern(constEvenColor: TColor = clWhite; constOddColor: TColor = clBtnFace): TBitmap;
Parameters
Parameters | Description |
const EvenColor: TColor = clWhite | The color to use on even pixels in the bitmap. |
const OddColor: TColor = clBtnFace | The color to use on odd pixels in the bitmap. |
Description
Call CreateBrushPattern to create and return a TBitmap object that can be assigned to the Bitmap property of a TBrush and used to paint a background pattern on a control.
If the specified pattern already exist, the internal reference count is incremented and the existing TBitmap is returned.
See Also
ClearBrushPatterns, ReleasePattern
About
Notes
Do not destroy the returned TBitmap object. This is done automatically when the application closes down.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page