TTMSFNCImageColor Class
Image control that tracks mouse position to read pixel colors from the color wheel bitmap.
API unit family: TMSFNCColorWheel
Inherits from: TTMSFNCImage
Syntax
TTMSFNCImageColor = class(TTMSFNCImage)
Properties
| Name |
Description |
| PixelColor |
Color of the pixel currently under the indicator position. |
| X |
Horizontal position of the color indicator within the wheel image. |
| Y |
Vertical position of the color indicator within the wheel image. |
Methods
| Name |
Description |
| Draw |
Renders the color wheel bitmap and overlays a crosshair cursor at the currently selected color position. |
| GetCenterPoint |
Returns the center point of the color wheel circle. |
| GetRadius |
Returns the radius of the color wheel circle in pixels. |
| MapPixels |
Maps bitmap pixel data into memory for fast color lookup. |
| UnmapPixels |
Releases the mapped pixel data from memory. |
| XYToColor |
Returns the color at the given wheel-image coordinates. |
Events
| Name |
Description |
| OnColorChanged |
Fires when the selected pixel color changes. |