PDFSurface.this - multiple declarations
- Function PDFSurface.this
- Function PDFSurface.this
- Function PDFSurface.this
Function PDFSurface.this
Create a PDFSurface
from a existing cairo_surface_t*.
PDFSurface
is a garbage collected class. It will call cairo_surface_destroy
when it gets collected by the GC or when dispose() is called.
Prototype
this(
cairo_surface_t* ptr
);
Warning
ptr
's reference count is not increased by this function!
Adjust reference count before calling it if necessary
Only use this if you know what your doing! This function should not be needed for standard cairoD usage.
Function PDFSurface.this
Creates a PDF surface of the specified size in points to be written to filename.
Prototype
this(
string fileName,
double width,
double height
);
Parameters
Name | Description |
---|---|
fileName | a filename for the PDF output (must be writable) |
width | width of the surface, in points (1 point == 1/72.0 inch) |
height | height of the surface, in points (1 point == 1/72.0 inch) |
Function PDFSurface.this
Creates a PDF surface of the specified size in points. This will generate a PDF surface that may be queried and used as a source, without generating a temporary file.
Prototype
this(
double width,
double height
);
Parameters
Name | Description |
---|---|
width | width of the surface, in points (1 point == 1/72.0 inch) |
height | height of the surface, in points (1 point == 1/72.0 inch) |
Authors
Johannes Pfau | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |