Class: Wx::SVGBitmapFileHandler
- Inherits:
-
SVGBitmapHandler
- Object
- SVGBitmapHandler
- Wx::SVGBitmapFileHandler
- Defined in:
- lib/wx/doc/gen/svg_file_dc.rb
Overview
This class is untracked and should not be derived from nor instances extended!
Handler saving bitmaps to external PNG files and linking to it from the SVG.
This handler is used by default by SVGFileDC. PNG files are created in the same folder as the SVG file and are named using the SVG filename appended with _image#.png
. When using Wx::SVGFileDC#set_bitmap_handler to set this handler with the default constructor, the PNG files are created in the runtime location of the application. The save location can be customized by using the wxSVGBitmapFileHandler(const wxFileName&) constructor.
Category: Device Contexts
Instance Method Summary collapse
-
#initialize(path) ⇒ Wx::SVGBitmapFileHandler
constructor
Create a SVGBitmapFileHandler and specify the location where the file will be saved.
-
#process_bitmap(bitmap, x, y, stream) ⇒ Boolean
Writes the bitmap representation as SVG to the given stream.
Constructor Details
#initialize(path) ⇒ Wx::SVGBitmapFileHandler
Create a Wx::SVGBitmapFileHandler and specify the location where the file will be saved.
122 |
# File 'lib/wx/doc/gen/svg_file_dc.rb', line 122 def initialize(path) end |
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.
132 |
# File 'lib/wx/doc/gen/svg_file_dc.rb', line 132 def process_bitmap(bitmap, x, y, stream) end |