TOlf SVGBitmap List .Bitmap Method
Get a bitmap from the SVG in default list at "AtIndex" with specified sizes.
class function Bitmap(const AtIndex: word; const Width: integer; const Height: integer; const MarginTop: single; const MarginRight: single; const MarginBottom: single; const MarginLeft: single; const BitmapScale: single = 1): TBitmap
Parameters
- AtIndex
- Type: System.Word
- Width
- Type: System.Integer
- Height
- Type: System.Integer
- MarginTop
- Type: System.Single
- MarginRight
- Type: System.Single
- MarginBottom
- Type: System.Single
- MarginLeft
- Type: System.Single
- BitmapScale
- Type: System.Single
Return Value
Type: TBitmap
If the bitmap doesn't exist in the cache, it's added to it after drawing. If the bitmap already exists in the cache, you get a reference to it. The margins values must be decimal values between 0 and 100 (as a percent).