Method SaveAsPainted
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
SaveAsPainted(string)
Saves the image as painted on a page or XObject to the file with the specified name.
public void SaveAsPainted(string fileName)
Parameters
fileName
stringName of the file to save image to.
Remarks
This method always creates images in PNG format with 72x72 ppi resolution.
This method transforms the Image using TransformationMatrix so the output image looks exactly like on a page in a PDF viewer with 72x72 ppi resolution.
The output image will have the same physical size as the image drawn on a PDF page or XObject.
SaveAsPainted(string, PdfPaintedImageSavingOptions)
Saves the image as painted on a page or XObject to the file with the specified name using the specified options.
public void SaveAsPainted(string fileName, PdfPaintedImageSavingOptions options)
Parameters
fileName
stringName of the file to save image to.
options
PdfPaintedImageSavingOptionsThe 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.
SaveAsPainted(Stream)
Saves the image as painted on a page or XObject to the stream.
public void SaveAsPainted(Stream stream)
Parameters
stream
StreamThe stream to save image to.
Remarks
This method always creates images in PNG format with 72x72 ppi resolution.
This method transforms the Image using TransformationMatrix so the output image looks exactly like on a page in a PDF viewer with 72x72 ppi resolution.
The output image will have the same physical size as the image drawn on a PDF page or XObject.
SaveAsPainted(Stream, PdfPaintedImageSavingOptions)
Saves the image as painted on a page or XObject to the stream using the specified options.
public void SaveAsPainted(Stream stream, PdfPaintedImageSavingOptions options)
Parameters
stream
StreamThe stream to save image to.
options
PdfPaintedImageSavingOptionsThe 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.