Table of Contents

TTMSFNCCloudImage Class

Control that displays an image loaded from a local file or a remote URL, with stretching, cropping, centering and aspect-ratio options.

API unit family: TMSFNCCloudImage Inherits from: TTMSFNCCustomCloudImage

Syntax

TTMSFNCCloudImage = class(TTMSFNCCustomCloudImage)

Properties

Name Description
AspectRatio When True, preserves the image's original width-to-height ratio while fitting it into the control. (inherited from TTMSFNCCustomCloudImage)
AutoSize When True, resizes the control to match the dimensions of the currently loaded image. (inherited from TTMSFNCCustomCloudImage)
Bitmap The bitmap displayed by the control. When empty, the control falls back to a scaled bitmap resolved from Bitmaps. (inherited from TTMSFNCCustomCloudImage)
BitmapContainer Optional container that supplies named bitmaps used to resolve the image referenced by the Bitmaps collection. (inherited from TTMSFNCCustomCloudImage)
Bitmaps Collection of scaled bitmaps used to resolve the image for the current display scale when no explicit Bitmap is set. (inherited from TTMSFNCCustomCloudImage)
Center When True, centers the image within the control area. (inherited from TTMSFNCCustomCloudImage)
Cropping When True, scales the image to cover the control area and clips the parts that fall outside it. (inherited from TTMSFNCCustomCloudImage)
Stretch When True, scales the image to fill the entire control area, ignoring its original size. (inherited from TTMSFNCCustomCloudImage)
URL Address of the image to display. Assigning a value loads the image; assigning an empty string clears the control. (inherited from TTMSFNCCustomCloudImage)
Version Returns the version of the control as a string. (inherited from TTMSFNCCustomCloudImage)

Methods

Name Description
Clear Clears the currently displayed image. (inherited from TTMSFNCCustomCloudImage)
Draw Draws the current image onto the supplied graphics surface. (inherited from TTMSFNCCustomCloudImage)
LoadFromURL Loads and displays an image from a remote URL. (inherited from TTMSFNCCustomCloudImage)

Events

Name Description
OnBitmapChanged Occurs when the displayed bitmap has changed. (inherited from TTMSFNCCustomCloudImage)