TMlSkinSvgImage

An SVG image control (new in v5.7): it draws a vector image that stays sharp at any size, on every Delphi version from 7 up.

Category
SVG controls
Unit
uMlSkinSvgImage.pas
Inherits from
TGraphicControl

Notes

  • The image can come from a resource (MlResID) or be set directly through Svg.
  • SvgColor recolours the whole icon, which makes monochrome icon sets easy.
  • Stretch fills the control, Center centres the image and Opacity sets its transparency.
  • Rendering is done entirely by GR32 — no Skia and no external DLLs.

Properties 7

NameTypeDefaultDescription
MlResIDTMlResIDThe SVG resource ID to display (from the resource manager), or the path of an SVG file.
SvgTMlSvgBrushThe SVG content object: set the SVG source directly or adjust the rendering parameters here.
SvgColorTColorclNoneOverrides the whole SVG with one colour for monochrome icons; leave it unset to keep the SVG's own colours.
StretchBooleanTrueStretches the image to the control size.
CenterBooleanTrueCentres the image in the control.
TransparentBooleanTrueTransparent background: the control skips its own fill and shows the form background (image or color) instead.
OpacityByte255Opacity: 0 fully transparent, 255 opaque.

Only the properties and events MLSkin adds are listed here. Standard VCL properties such as Align, Anchors, Font and OnClick are available too and behave exactly as on the stock controls.

Offline helpA PDF / CHM version is available for offline reading.