A SVGFileDC is a device context onto which graphics and text can be drawn, and the output produced as a vector file, in SVG format (see the W3C SVG Specifications <http://www.w3.org/TR/2001/REC-SVG-20010904/>).
This format can be read by a range of programs, including a Netscape plugin (Adobe), full details are given in the SVG Implementation and Resource Directory <http://www.svgi.org/>. Vector formats may often be smaller than raster formats.
The intention behind SVGFileDC is that it can be used to produce a file corresponding to the screen display context, SVGFileDC, by passing the SVGFileDC as a parameter instead of a SVGFileDC. Thus the SVGFileDC is a write-only class.
As the SVGFileDC is a vector format, raster operations like GetPixel are unlikely to be supported. However, the SVG specification allows for PNG format raster files to be embedded in the SVG, and so bitmaps, icons and blit operations in SVGFileDC are supported.
A more substantial SVG library (for reading and writing) is available at the Art2D website <http://wxart2d.sourceforge.net/>.
__init__ | Initializes a SVGFileDC with the given f filename with the given Width and Height at dpi resolution. |
Clear | This makes no sense in SVGFileDC and does nothing. |
CrossHair | Functions not implemented in this DC class. |
DestroyClippingRegion | Functions not implemented in this DC class. |
EndDoc | Does nothing. |
EndPage | Does nothing. |
FloodFill | Functions not implemented in this DC class. |
GetClippingBox | Functions not implemented in this DC class. |
GetPixel | Functions not implemented in this DC class. |
SetClippingRegion | Functions not implemented in this DC class. |
SetLogicalFunction | Does the same as DC.SetLogicalFunction , except that only COPY is available. |
SetPalette | Functions not implemented in this DC class. |
StartDoc | Functions not implemented in this DC class. |
A SVGFileDC is a device context onto which graphics and text can be drawn, and the output produced as a vector file, in SVG format (see the W3C SVG Specifications <http://www.w3.org/TR/2001/REC-SVG-20010904/>).
Possible constructors:
SVGFileDC(filename, width=320, height=240, dpi=72)
Initializes a SVGFileDC with the given f filename with the given Width and Height at dpi resolution.
Parameters: |
|
---|
Functions not implemented in this DC class.
Parameters: |
|
---|
Functions not implemented in this DC class.
Does nothing.
Does nothing.
Functions not implemented in this DC class.
Parameters: |
|
---|---|
Return type: | bool |
Functions not implemented in this DC class.
Parameters: |
|
---|
Functions not implemented in this DC class.
Parameters: |
|
---|---|
Return type: | bool |
Functions not implemented in this DC class.
Overloaded Implementations:
SetClippingRegion (self, x, y, width, height)
Parameters: |
|
---|
SetClippingRegion (self, pt, sz)
Parameters: |
---|
SetClippingRegion (self, rect)
Parameters: | rect (Rect) – |
---|
SetClippingRegion (self, region)
Parameters: | region (Region) – |
---|
Does the same as DC.SetLogicalFunction , except that only COPY is available.
Trying to set one of the other values will fail.
Parameters: | function (RasterOperationMode) – |
---|
Functions not implemented in this DC class.
Parameters: | palette (Palette) – |
---|
Functions not implemented in this DC class.
Parameters: | message (string) – |
---|---|
Return type: | bool |