Class PdfExtractionImageRecord
Immutable extracted image record.
Inherited Members
Namespace: DRIT.Pdf.Extraction
Assembly: DRIT.Pdf.dll
Syntax
public sealed class PdfExtractionImageRecord : PdfExtractionContentRecord
Properties
CanExport
Gets whether a detached PNG or JPEG snapshot is available.
Declaration
public bool CanExport { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ExportFormat
Snapshot export format used by this projection.
Declaration
public ImageSaveFormat ExportFormat { get; }
Property Value
| Type | Description |
|---|---|
| ImageSaveFormat |
ExportedByteCount
Length of the detached image snapshot in bytes, or zero if unavailable.
Declaration
public int ExportedByteCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
MimeType
Snapshot export MIME type.
Declaration
public string MimeType { get; }
Property Value
| Type | Description |
|---|---|
| string |
PixelHeight
Pixel height.
Declaration
public double PixelHeight { get; }
Property Value
| Type | Description |
|---|---|
| double |
PixelSize
Decoded image pixel dimensions.
Declaration
public PdfSize PixelSize { get; }
Property Value
| Type | Description |
|---|---|
| PdfSize |
PixelWidth
Pixel width.
Declaration
public double PixelWidth { get; }
Property Value
| Type | Description |
|---|---|
| double |
Size
Alias for PixelSize.
Declaration
public PdfSize Size { get; }
Property Value
| Type | Description |
|---|---|
| PdfSize |
Methods
ReadBytes()
Returns a defensive copy of the detached PNG snapshot.
Declaration
public byte[] ReadBytes()
Returns
| Type | Description |
|---|---|
| byte[] |
Save(Stream)
Writes the detached PNG snapshot to a writable stream. The destination is never owned or disposed by this method.
Declaration
public void Save(Stream destination)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | destination |