PdfPaintedImage.SaveAsPainted Method (Stream, PdfPaintedImageSavingOptions)

Saves the image as painted on a page or XObject to the stream using the specified options.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void SaveAsPainted(
	Stream stream,
	PdfPaintedImageSavingOptions options
)
VB
Public Sub SaveAsPainted ( 
	stream As Stream,
	options As PdfPaintedImageSavingOptions
)

Parameters

stream
Type: System.IO.Stream
The stream to save image to.
options
Type: BitMiracle.Docotic.Pdf.PdfPaintedImageSavingOptions
The options to use while saving the image.

Remarks

This method transforms the Image using TransformationMatrix so the output image looks exactly like on a page in a PDF viewer with the specified resolution.

The output image will have the same physical size as the image drawn on a PDF page or XObject.

See Also