[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.Images.PdfImage

PdfImage Class

Represents a PDF Image loaded from a PDF stream.

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

Properties

Name Description
BitsPerComponent

Gets the number of bits used to represent each color component in a sample. Valid values are 1, 2, 4, 8, and (in PDF 1.5) 16.

BitsPerPixel

Gets the number of bits-per-pixel (BPP) for this image.

Doc

Gets the GcPdfDocument owning this object.

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.

ImageMask

Gets a value indicating whether the image is defined as a stencil mask for painting in the current color.

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

GetSoftMask()

Returns the PdfImage object defining a soft-mask image, see the PDF specification for details.

Extension Methods