wx.SVGBitmapEmbedHandler¶Handler embedding bitmaps as base64-encoded PNGs into the SVG.
New in version 4.1/wxWidgets-3.1.0.
See also
wx.SVGFileDC.SetBitmapHandler .
Class Hierarchy¶
Inheritance diagram for class SVGBitmapEmbedHandler:

Methods Summary¶Writes the bitmap representation as |
Class API¶wx.SVGBitmapEmbedHandler(SVGBitmapHandler)¶Handler embedding bitmaps as base64-encoded PNGs into the SVG.
ProcessBitmap(self, bitmap, x, y, stream)¶Writes the bitmap representation as SVG to the given stream.
The XML generated by this function will be inserted into the SVG file inline with the XML generated by the main wx.SVGFileDC class so it is important that the XML is properly formed.
bitmap (wx.Bitmap) – A valid bitmap to add to SVG.
x (int) – Horizontal position of the bitmap.
y (int) – Vertical position of the bitmap.
stream (wx.OutputStream) – The stream to write SVG contents to.
bool