TTMSFNCCustomImage Class
Base image control that displays a bitmap, scaled bitmap collection, or bitmap container item.
API unit family: TMSFNCImage
Inherits from: TTMSFNCCustomControl
Implements: ITMSFNCBitmapContainer
Syntax
TTMSFNCCustomImage = class(TTMSFNCCustomControl, ITMSFNCBitmapContainer)
Methods
| Name | Description |
|---|---|
| Clear | Clears the current bitmap content. |
| Draw | Renders the bitmap inside the specified rectangle according to the current Stretch, Center, AspectRatio, Cropping, and margin settings. |
| GetBitmap | Returns the bitmap instance displayed by the control. |
| GetPaintRectangle | Returns the rectangle used to paint the bitmap after margins, centering, stretching, and aspect-ratio rules are applied. |
Events
| Name | Description |
|---|---|
| OnBitmapChanged | Fires when the displayed bitmap changes. |