Show/Hide Toolbars

RiverSoftAVG Products Help

Defines a custom TBitmap codec for reading SVGs into a TBitmap

Note: for XE3+ only

noteNote

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.

Namespace: FMX.RS.SVGCodec

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb