[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.Images.PdfImageHandler

PdfImageHandler Class

Represents and manages a IImage used in a GcPdfDocument.

Namespace: GrapeCity.Documents.Pdf.Graphics.Images
Assembly: DS.Documents.Pdf.dll
Syntax
public class PdfImageHandler : PdfImageObjectBase, IPdfImage, IImage, IDisposable, IXObject, IContentItem, IPdfDict
Public Class PdfImageHandler
    Inherits PdfImageObjectBase
    Implements IPdfImage, IImage, IDisposable, IXObject, IContentItem, IPdfDict

Properties

Name Description
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.

Doc

Gets the GcPdfDocument owning this object.

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.

Height

Gets the height of the image in pixels.

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.

Image

Gets the IImage object managed by this PdfImageHandler object.

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.

Width

Gets the width of the image in pixels.

Methods

Name Description
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).

Extension Methods