Defines a custom TBitmap codec for reading SVGs into a TBitmap
Note: for XE3+ only
Note
|
The VCL version of this unit, for SVGs transparently supporting the VCL TPicture/TGraphic architecture is RSImaging.SVGImage.pas
|
|
Name
|
Description
|
|
TRSSVGCodec
|
Defines a custom TBitmap codec for reading SVGs into a TBitmap
Note: for XE3+ only
Note
|
Unfortunately, because of how TCustomBitmapCodec works, there is no way to find out how big the requested bitmap should be and then drawing an SVG at that resolution. The size of the bitmap returned from TRSSVGCodec class will be the width and height of the SVG. This can be either the SVG ViewBox width and height (if defined) or calculated based on the SVG elements. This can be significantly smaller than the desired bitmap size if you were reading into a TImage for example. It is generally recommended that you create a TBitmap yourself at the size desired and then draw to the bitmap using DrawSVGToBitmap.
|
|
Top
|
|
Name
|
Description
|
|
TOutBitmap
|
Represents an alias of the TBitmap type.
|
Top
|