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

Byte[]

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:

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

stream
Stream

The Stream to which image will be written.

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:

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:

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:

See Also

PdfRasterizerPage
ceTe.DynamicPDF.Rasterizer

In this topic