JVCL Help:CreateBrushPattern

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Creates a bitmap from a two-color pattern.

run\JvCustomItemViewer.pas


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.

run\JvCustomItemViewer.pas


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.

run\JvCustomItemViewer.pas


See Also

ClearBrushPatterns, ReleasePattern

run\JvCustomItemViewer.pas


About

Notes

Do not destroy the returned TBitmap object. This is done automatically when the application closes down.

run\JvCustomItemViewer.pas


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