Click or drag to resize

Image Class

The Image class provides common methods for working with PDF images.
Inheritance Hierarchy
SystemObject
  pdftron.PDFImage

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Image : IClosable

The Image type exposes the following members.

Constructors
  NameDescription
Public methodImage
Creates the soft mask.
Top
Methods
  NameDescription
Public methodClose
Public methodStatic memberCreate(SDFDoc, Byte)
Create and embed an Image from an array of bytes representing the image.
Public methodStatic memberCreate(SDFDoc, String)
Create and embed an Image from an external file taking into account specified compression hints.
Public methodStatic memberCreate(SDFDoc, Byte, Obj)
Create and embed an Image from an array of bytes representing the image.
Public methodStatic memberCreate(SDFDoc, String, Obj)
Create and embed an Image from an external file taking into account specified compression hints.
Public methodStatic memberCreate(SDFDoc, Byte, Int32, Int32, Int32, ColorSpace)
Creates the.
Public methodStatic memberCreate(SDFDoc, FilterReader, Int32, Int32, Int32, ColorSpace, ImageInputFilter)
Embed the raw image data taking into account specified compression hints.
Public methodStatic memberCreate(SDFDoc, FilterReader, Int32, Int32, Int32, ColorSpace, Obj)
Creates the.
Public methodStatic memberCreate(SDFDoc, Byte, Int32, Int32, Int32, ColorSpace, ImageInputFilter)
Directly embed the image that is already compressed using the Image::InputFilter format. The function can be used to pass-through pre-compressed image data.
Public methodStatic memberCreate(SDFDoc, Byte, Int32, Int32, Int32, ColorSpace, Obj)
Creates the.
Public methodStatic memberCreateAsync(SDFDoc, String)
Create and embed an Image from an external file taking into account specified compression hints.
Public methodStatic memberCreateAsync(SDFDoc, IRandomAccessStream)
Create and embed an Image from a random access stream representing the image.
Public methodStatic memberCreateAsync(SDFDoc, String, Obj)
Create and embed an Image from an external file taking into account specified compression hints.
Public methodStatic memberCreateAsync(SDFDoc, IRandomAccessStream, Obj)
Create and embed an Image from a random access stream representing the image.
Public methodStatic memberCreateImageMask(SDFDoc, FilterReader, Int32, Int32)
Create and embed an ImageMask.
Public methodStatic memberCreateImageMask(SDFDoc, Byte, Int32, Int32)
Create and embed an ImageMask. Embed the raw image data taking into account specified compression hints. The ImageMask can be used as a stencil mask for painting in the current color or as an explicit mask specifying which areas of the image to paint and which to mask out. One of the most important uses of stencil masking is for painting Character glyphs represented as bitmaps.
Public methodStatic memberCreateImageMask(SDFDoc, FilterReader, Int32, Int32, Obj)
Creates the image mask.
Public methodStatic memberCreateImageMask(SDFDoc, Byte, Int32, Int32, Obj)
Creates the image mask.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExportAsPng
Saves this image to a file as PNG format.
Public methodExportAsPngAsync
Saves this image to a file as PNG format.
Public methodExportAsTiff
Saves this image to a file as TIFF format.
Public methodExportAsTiffAsync
Saves this image to a file as TIFF format.
Public methodGetBitsPerComponent
Gets the bits per component.
Public methodGetComponentNum
Gets the component number.
Public methodGetDecodeArray
Gets the decode Array.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetImageColorSpace
Gets the bitmap.
Public methodGetImageDataSize
Gets the image data.
Public methodGetImageHeight
Gets the image height.
Public methodGetImageRenderingIntent
Gets the image rendering intent.
Public methodGetImageWidth
Gets the image width.
Public methodGetMask
Gets the mask.
Public methodGetSDFObj
Gets the SDFObj.
Public methodGetSoftMask
Gets the soft mask.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsImageInterpolate
Checks if is image interpolate.
Public methodIsImageMask
Checks if is image mask.
Public methodIsValid
Checks if is valid.
Public methodSet
Sets value to the given image value
Public methodSetMask(Image)
Set an Explicit Image Mask.
Public methodSetMask(Obj)
Set a Color Key Mask.
Public methodSetSoftMask
Set a Soft Mask.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The Element class contains a similar interface used to access image data. To create the Image object from an image Element, pass the Element's SDF/Cos dictionary to Image constructor (e.g. Image image = new Image(element->GetXObject())).

It is recommended to invoke synchronous methods in a worker thread.

See Also