Skip to main content
All docs
V26.1
  • TCustomImage.SizeMode Property

    Specifies the active image size calculation mode.

    Declaration

    property SizeMode: TSizeMode read; write; default TSizeMode.StretchImage;

    Property Value

    Type Default Description
    TdxSplashFormBase.TCustomImage.TSizeMode StretchImage

    The active image size calculation mode.

    Remarks

    Use the SizeMode property to switch between available image size calculation modes.

    Available Options

    TdxSplashFormBase.TCustomImage.TSizeMode.StretchImage

    Default. The displayed image is resized to fill the widget area. This option ignores the original image aspect ratio.

    VCL Shared Libraries: Image Widget — Stretch Image Mode

    TdxSplashFormBase.TCustomImage.TSizeMode.ProportionalStretchImage

    The displayed image is resized to fill the widget area. The image maintains the original aspect ratio and is centered within the widget area.

    VCL Shared Libraries: Image Widget — Proportional Stretch Image Mode

    TdxSplashFormBase.TCustomImage.TSizeMode.UseImageDimensions

    The displayed image is not resized. Widget area dimensions are adjusted automatically to match the image size. You cannot resize the Image widget in this mode.

    VCL Shared Libraries: Image Widget — Use Image Dimensions

    This option is recommended for raster image formats.

    Default Value

    The SizeMode property’s default value is StretchImage.

    See Also