Version: 3.2.7
wxSVGBitmapEmbedHandler Class Reference

#include <wx/dcsvg.h>

+ Inheritance diagram for wxSVGBitmapEmbedHandler:

Detailed Description

Handler embedding bitmaps as base64-encoded PNGs into the SVG.

See also
wxSVGFileDC::SetBitmapHandler().

Library:  wxCore
Category:  Device Contexts
Since
3.1.0

Public Member Functions

virtual bool ProcessBitmap (const wxBitmap &bitmap, wxCoord x, wxCoord y, wxOutputStream &stream) const
 Writes the bitmap representation as SVG to the given stream. More...
 

Member Function Documentation

◆ ProcessBitmap()

virtual bool wxSVGBitmapEmbedHandler::ProcessBitmap ( const wxBitmap bitmap,
wxCoord  x,
wxCoord  y,
wxOutputStream stream 
) const
virtual

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 wxSVGFileDC class so it is important that the XML is properly formed.

Parameters
bitmapA valid bitmap to add to SVG.
xHorizontal position of the bitmap.
yVertical position of the bitmap.
streamThe stream to write SVG contents to.

Implements wxSVGBitmapHandler.