[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.Images.PdfImageHandler

Class PdfImageHandler

Namespace
GrapeCity.Documents.Pdf.Graphics.Images
Assembly
GcDocs.Pdf.dll

Represents and manages a IImage used in a GcPdfDocument.

public class PdfImageHandler : PdfImageObjectBase, IPdfImage, IImage, IDisposable, IXObject, IContentItem, IPdfDict
Inheritance
object
PdfImageHandler
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Properties

BitsPerPixel

Gets the resolution (bits-per-pixel, BPP) of this image.

Note that the PdfImageHandler returns the resolution of the underlying image. In some cases a PDF image may not provide any info about its resolution, in such cases this property will return 0.

public override int BitsPerPixel { get; }

Property Value

int

Doc

Gets the GcPdfDocument owning this object.

public override GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

Format

Gets or sets the format used to encode the image associated with this PdfImageHandler.

By default this property is unspecified (null), and the actual embedding mode is determined by ImageOptions.

public ImageOptions.ImageFormat? Format { get; set; }

Property Value

ImageOptions.ImageFormat?

Height

Gets the height of the image in pixels.

public override int Height { get; }

Property Value

int

HorizontalResolution

Gets the horizontal resolution of the image. If this property returns a value that is less or equal than 0, then the horizontal resolution is not specified for an image.

public override float HorizontalResolution { get; }

Property Value

float

Image

Gets the IImage object managed by this PdfImageHandler object.

public IImage Image { get; }

Property Value

IImage

VerticalResolution

Gets the vertical resolution of the image. If this property returns a value that is less or equal than 0, then the vertical resolution is not specified for an image.

public override float VerticalResolution { get; }

Property Value

float

Width

Gets the width of the image in pixels.

public override int Width { get; }

Property Value

int

Methods

GetImageStreamInfo()

Returns the GrapeCity.Documents.Pdf.Spec.PdfStreamObject containing unparsed image data and information about the PDF filter and decode parameters.

Note that not all derived classes support this method (for example, PdfImageHandler).

public override PdfStreamInfo GetImageStreamInfo()

Returns

PdfStreamInfo