PdfRasterizerPage.Draw
Overloads
Draw(ImageFormat, ImageSize) | Rasterizes the page to a byte array containing the image data. |
Draw(Stream, ImageFormat, ImageSize) | Rasterizes the page to an image and stores it to the given stream. |
Draw(String, ImageFormat, ImageSize) | Rasterizes the page to an image and stores it to the given file path. |
Draw(String, ImageFormat, ImageSize, RectangleF) | Rasterizes the page to a Cropped image according to the given Dimensions and stores it to the given file path. |
Draw(ImageFormat, ImageSize)
Rasterizes the page to a byte array containing the image data.
public Byte[] Draw(ImageFormat imageFormat, ImageSize imageSize)
Function Draw(imageFormat As ImageFormat, imageSize As ImageSize) As Byte()
Parameters
- imageFormat
- ImageFormat
Represents the image format to use.
- imageSize
- ImageSize
Represents the image size to use.
Returns
Returns a byte array containing the image data.
Licensing Info
This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
Draw(Stream, ImageFormat, ImageSize)
Rasterizes the page to an image and stores it to the given stream.
public void Draw(Stream stream, ImageFormat imageFormat, ImageSize imageSize)
Sub Draw(stream As Stream, imageFormat As ImageFormat, imageSize As ImageSize)
Parameters
- imageFormat
- ImageFormat
Represents the image format to use.
- imageSize
- ImageSize
Represents the image size to use.
Licensing Info
This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
Draw(String, ImageFormat, ImageSize)
Rasterizes the page to an image and stores it to the given file path.
public void Draw(string filePath, ImageFormat imageFormat, ImageSize imageSize)
Sub Draw(filePath As String, imageFormat As ImageFormat, imageSize As ImageSize)
Parameters
- filePath
- String
Physical file path of the image.
- imageFormat
- ImageFormat
Represents the image format to use.
- imageSize
- ImageSize
Represents the image size to use.
Licensing Info
This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
Draw(String, ImageFormat, ImageSize, RectangleF)
Rasterizes the page to a Cropped image according to the given Dimensions and stores it to the given file path.
public void Draw(string filePath, ImageFormat imageFormat, ImageSize imageSize, RectangleF rectangle)
Sub Draw(filePath As String, imageFormat As ImageFormat, imageSize As ImageSize, rectangle As RectangleF)
Parameters
- filePath
- String
Physical file path of the image.
- imageFormat
- ImageFormat
Represents the image format to use.
- imageSize
- ImageSize
Represents the image size to use.
- rectangle
- RectangleF
Represents the cropped rectangular area of the page.
Licensing Info
This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.