Skip to main content
All docs
V26.1
  • TdxSplashFormBase.TCustomImage.TSizeMode Enum

    Enumerates image size calculation modes for Image and Animation Splash Form widgets.

    Declaration

    TSizeMode = (
        UseImageDimensions,
        StretchImage,
        ProportionalStretchImage
    );

    Members

    Name Description Example
    UseImageDimensions

    An image is not resized. In this mode, widget area dimensions are adjusted automatically to match the original image size.

    This option is recommended for raster image formats.

    VCL Shared Libraries: Image Widget — Use Image Dimensions

    StretchImage

    Default. An image is resized to fill the widget area.

    This option ignores the original image aspect ratio.

    VCL Shared Libraries: Image Widget — Stretch Image Mode

    ProportionalStretchImage

    An 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

    Remarks

    Animation and Image widgets can use original image dimensions or resize the displayed image to fill the client area.

    Note

    TdxSplashFormBase.TCustomImage.TSizeMode is a scoped enumeration type. Use the full type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxSplashFormBase.TCustomImage.TSizeMode.ProportionalStretchImage (in Delphi) or TdxSplashFormBase::TCustomImage::TSizeMode::ProportionalStretchImage (in C++Builder) to refer to the ProportionalStretchImage value in code.

    Direct TdxSplashFormBase.TCustomImage.TSizeMode Type Reference

    The TdxSplashFormBase.TCustomImage.SizeMode property references the TdxSplashFormBase.TCustomImage.TSizeMode type.

    See Also