JCL Help:CreateRegionFromBitmap

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Creates the region from the specified bitmap.


Pascal

 function CreateRegionFromBitmap(Bitmap: TBitmap; RegionColor: TColor; RegionBitmapMode: TJclRegionBitmapMode; UseAlphaChannel: Boolean = False): HRGN;


Parameters

Parameters Description
Bitmap: TBitmap A bitmap used as input to create the region.
RegionColor: TColor The color for the mask.
RegionBitmapMode: TJclRegionBitmapMode This flag specifies if the RegionColor is included or excluded.


Return Value

The region handle.


Description

This function creates the region from a bitmap by specifing a color. You can use this function to make custom forms of bitmaps, or hotspots on your bitmap, like a map of europe for instance with every country in a different color. Create the regions for every color. The RegionBitmapMode can be rmInclude or rmExclude, with rmInclude all pixels of RegionColor will be in the region, with rmExclude all pixels except those of RegionColor will be in the region.


See Also

TJclRegionBitmapMode CreateBitmap


About

Unit

JclGraphics


Donator

Wim De Cleen


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