PdfImage.Save Method (Stream)

Saves the image to the specified stream.

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

Syntax

C#
public PdfExtractedImageFormat Save(
	Stream stream
)
VB
Public Function Save ( 
	stream As Stream
) As PdfExtractedImageFormat

Parameters

stream
Type: System.IO.Stream
The stream to save image to.

Return Value

Type: PdfExtractedImageFormat
Format of extracted image.

Remarks

Mask images (see IsMask property) are always saved according to usual PDF convention:

  • White pixels corresponds to masked-out area, the "transparent" pixels. Such masked out area will not be painted on the page.
  • Black pixels corresponds to unmasked area, the "opaque" pixels. Such unmasked area will be painted on the page with the current fill color or corresponding portion of the base image (when this mask image is set as Mask for other image).

See Also