VectSharp
2.2.1
A light library for C# vector graphics
|
Represents a Graphics object with a width and height. More...
Public Member Functions | |
Page (double width, double height) | |
Create a new page. More... | |
void | Crop (Point topLeft, Size size) |
Translate and resize the Page so that it displays the rectangle defined by topLeft and size . More... | |
void | Crop () |
Translate and resize the Page so that it displays the rectangle corresponding to the bounding box of its contents. More... | |
Properties | |
double | Width [get, set] |
Width of the page. More... | |
double | Height [get, set] |
Height of the page. More... | |
Graphics | Graphics [get, set] |
Graphics surface of the page. More... | |
Colour | Background = Colour.FromRgba(255, 255, 255, 0) [get, set] |
Background colour of the page. More... | |
Represents a Graphics object with a width and height.
Definition at line 47 of file Document.cs.
VectSharp.Page.Page | ( | double | width, |
double | height | ||
) |
Create a new page.
width | The width of the page. |
height | The height of the page. |
Definition at line 74 of file Document.cs.
void VectSharp.Page.Crop | ( | ) |
Translate and resize the Page so that it displays the rectangle corresponding to the bounding box of its contents.
Definition at line 110 of file Document.cs.
Translate and resize the Page so that it displays the rectangle defined by topLeft and size .
topLeft | The top left corner of the area to include in the page. |
size | The size of the area to include in the page. |
Definition at line 88 of file Document.cs.
|
getset |
Background colour of the page.
Definition at line 67 of file Document.cs.
|
getset |
Graphics surface of the page.
Definition at line 62 of file Document.cs.
|
getset |
Height of the page.
Definition at line 57 of file Document.cs.
|
getset |
Width of the page.
Definition at line 52 of file Document.cs.