TTMSFNCImage Class
Image control for displaying a bitmap, scaled bitmap collection, or bitmap container resource.
API unit family: TMSFNCImage
Inherits from: TTMSFNCCustomImage
Syntax
TTMSFNCImage = class(TTMSFNCCustomImage)
Properties
Name
Description
AspectRatio
When True, keeps the bitmap's original width-to-height ratio while drawing. (inherited from TTMSFNCCustomImage)
AutoSize
When True, resizes the control to match the current bitmap size. (inherited from TTMSFNCCustomImage)
Bitmap
Bitmap displayed by the control. (inherited from TTMSFNCCustomImage)
BitmapContainer
External bitmap container used to resolve named or shared bitmap resources. (inherited from TTMSFNCCustomImage)
BitmapMargins
Margins applied around the bitmap before it is drawn. (inherited from TTMSFNCCustomImage)
Bitmaps
Scaled bitmap collection used to provide alternate bitmap sizes for different display scales. (inherited from TTMSFNCCustomImage)
Center
When True, centers the bitmap in the available paint rectangle. (inherited from TTMSFNCCustomImage)
Cropping
When True, clips the bitmap to the control bounds while drawing. (inherited from TTMSFNCCustomImage)
Stretch
When True, stretches the bitmap to fill the available paint rectangle. (inherited from TTMSFNCCustomImage)
Version
Version string for the image control. (inherited from TTMSFNCCustomImage)
Methods
Name
Description
Clear
Clears the current bitmap content. (inherited from TTMSFNCCustomImage)
Draw
Renders the bitmap inside the specified rectangle according to the current Stretch, Center, AspectRatio, Cropping, and margin settings. (inherited from TTMSFNCCustomImage)
GetBitmap
Returns the bitmap instance displayed by the control. (inherited from TTMSFNCCustomImage)
GetPaintRectangle
Returns the rectangle used to paint the bitmap after margins, centering, stretching, and aspect-ratio rules are applied. (inherited from TTMSFNCCustomImage)
Events
Name
Description
OnBitmapChanged
Fires when the displayed bitmap changes. (inherited from TTMSFNCCustomImage)
Used by