Class: Wx::SVGBitmapEmbedHandler

Inherits:
SVGBitmapHandler show all
Defined in:
lib/wx/doc/gen/svg_file_dc.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

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

Category: Device Contexts

See Also:

  • Wx::SVGFileDC#set_bitmap_handler.

Requires:

  • USE_SVG

Instance Method Summary collapse

Instance Method Details

#process_bitmap(bitmap, x, y, stream) ⇒ Boolean

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.

Parameters:

  • bitmap (Wx::Bitmap)

    A valid bitmap to add to SVG.

  • x (Integer)

    Horizontal position of the bitmap.

  • y (Integer)

    Vertical position of the bitmap.

  • stream (Wx::OutputStream)

    The stream to write SVG contents to.

Returns:

  • (Boolean)


155
# File 'lib/wx/doc/gen/svg_file_dc.rb', line 155

def process_bitmap(bitmap, x, y, stream) end