Contains methods to render a page to a PNG image.
More...
Contains methods to render a page to a PNG image.
Definition at line 29 of file Raster.cs.
◆ Rasterise()
Rasterise a region of a Graphics object.
- Parameters
-
graphics | The Graphics object that will be rasterised. |
region | The region of the graphics that will be rasterised. |
scale | The scale at which the image will be rendered. |
interpolate | Whether the resulting image should be interpolated or not when it is drawn on another Graphics surface. |
- Returns
- A RasterImage containing the rasterised graphics.
Definition at line 90 of file Raster.cs.
◆ SaveAsPNG() [1/2]
static void VectSharp.Raster.Raster.SaveAsPNG |
( |
this Page |
page, |
|
|
Stream |
stream, |
|
|
double |
scale = 1 |
|
) |
| |
|
static |
Render the page to a PNG stream.
- Parameters
-
page | The Page to render. |
stream | The stream to which the PNG data will be written. |
scale | The scale to be used when rasterising the page. This will determine the width and height of the image file. |
Definition at line 63 of file Raster.cs.
◆ SaveAsPNG() [2/2]
static void VectSharp.Raster.Raster.SaveAsPNG |
( |
this Page |
page, |
|
|
string |
fileName, |
|
|
double |
scale = 1 |
|
) |
| |
|
static |
Render the page to a PNG file.
- Parameters
-
page | The Page to render. |
fileName | The full path to the file to save. If it exists, it will be overwritten. |
scale | The scale to be used when rasterising the page. This will determine the width and height of the image file. |
Definition at line 38 of file Raster.cs.
The documentation for this class was generated from the following file: