wx.SVGBitmapEmbedHandler¶
Handler embedding bitmaps as base64-encoded PNGs into the SVG.
Added in version 4.1/wxWidgets-3.1.0.
See also
Class Hierarchy¶
Methods Summary¶
Writes the bitmap representation as |
Class API¶
- class wx.SVGBitmapEmbedHandler(SVGBitmapHandler)¶
Handler embedding bitmaps as base64-encoded PNGs into the
SVG.
Methods¶
- ProcessBitmap(self, bitmap, x, y, stream)¶
Writes the bitmap representation as
SVGto the given stream.The
XMLgenerated by this function will be inserted into theSVGfile inline with theXMLgenerated by the main wx.SVGFileDC class so it is important that theXMLis properly formed.- Parameters:
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
SVGcontents to.
- Return type:
bool