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.
Notes
- The image can come from a resource (
MlResID) or be set directly throughSvg. SvgColorrecolours the whole icon, which makes monochrome icon sets easy.Stretchfills the control,Centercentres the image andOpacitysets its transparency.- Rendering is done entirely by GR32 — no Skia and no external DLLs.
Properties 7
| Name | Type | Default | Description |
|---|---|---|---|
MlResID | TMlResID | — | The SVG resource ID to display (from the resource manager), or the path of an SVG file. |
Svg | TMlSvgBrush | — | The SVG content object: set the SVG source directly or adjust the rendering parameters here. |
SvgColor | TColor | clNone | Overrides the whole SVG with one colour for monochrome icons; leave it unset to keep the SVG's own colours. |
Stretch | Boolean | True | Stretches the image to the control size. |
Center | Boolean | True | Centres the image in the control. |
Transparent | Boolean | True | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
Opacity | Byte | 255 | Opacity: 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.