Einhugur SVG Plugin for Xojo |
|
Image.RenderInto Method
Renders the SVG image into existing RawBitmap object.

RenderInto(
bitmap
as RawBitmap,
x
as Int32,
y
as Int32,
width
as UInt32,
Height
as UInt32)
Parameters
- bitmap
- RawBitmap to render into. Note this must be bitmap that has 8 bits per channel and is in the format BGRA. Anything else will let this method throw exception.
- x
- X position within the RawBitmap to render the SVG image at.
- y
- Y position within the RawBitmap to render the SVG image at.
- width
- Desired width of the rendered SVG image or zero.
- Height
- Desired height of the rendered SVG image or zero.
Remarks
The existing object will not get cleared so it could contain some image or drawing and render the SVG over it. Also the Bitmap may be smaller or larger than the rendering size of the SVG image.
If both width and height parameters are zero then SVG image is rendered in same size as the the actual SVG size.
If one of the width and height parameters is zero then you will get proportionally correct scaling on the rendered SVG image.
This method can throw SVGException.
See Also
Image Class