# IWorkPreviewAsset

An embedded visual preview discovered in an iWork package.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[IWorkPreviewAsset.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L30)

**Modifiers**

sealed

An embedded visual preview discovered in an iWork package.

## Inheritance

- object
- IWorkPreviewAsset

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [IWorkConversionReport.VisualPreview](/api/iwork/officeimo-iwork-iworkconversionreport/#property-visualpreview)
- Property [IWorkSourceDocument.PreferredRasterPreview](/api/iwork/officeimo-iwork-iworksourcedocument/#property-preferredrasterpreview)
- Property [IWorkSourceDocument.Previews](/api/iwork/officeimo-iwork-iworksourcedocument/#property-previews)

### Accepted by parameters 3

- Method [IWorkKeynoteProjection.CreateConversionReport](/api/iwork/officeimo-iwork-iworkkeynoteprojection/#method-createconversionreport-officeimo-iwork-iworkprojectionkind-officeimo-iwork-iworkpreviewasset) parameter `preview`
- Method [IWorkNumbersProjection.CreateConversionReport](/api/iwork/officeimo-iwork-iworknumbersprojection/#method-createconversionreport-officeimo-iwork-iworkprojectionkind-officeimo-iwork-iworkpreviewasset) parameter `preview`
- Method [IWorkPagesProjection.CreateConversionReport](/api/iwork/officeimo-iwork-iworkpagesprojection/#method-createconversionreport-officeimo-iwork-iworkprojectionkind-officeimo-iwork-iworkpreviewasset) parameter `preview`

Filter members 

Show inherited

## Methods

`public byte[] GetBytes()` [#](#method-getbytes)

[IWorkPreviewAsset.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L30)

Returns a defensive copy of the preview bytes.

Returns

`byte[]`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Path { get; }` [#](#property-path)

[IWorkPreviewAsset.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L18)

Gets the source package path.

`public string MediaType { get; }` [#](#property-mediatype)

[IWorkPreviewAsset.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L20)

Gets the preview media type.

`public IWorkVisualCoverage Coverage { get; }` [#](#property-coverage)

[IWorkPreviewAsset.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L22)

Gets the known preview coverage.

`public int? PixelWidth { get; }` [#](#property-pixelwidth)

[IWorkPreviewAsset.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L24)

Gets the raster width when it can be read without decoding the image.

`public int? PixelHeight { get; }` [#](#property-pixelheight)

[IWorkPreviewAsset.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L26)

Gets the raster height when it can be read without decoding the image.

`public int Length { get; }` [#](#property-length)

[IWorkPreviewAsset.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkPreviewAsset.cs#L28)

Gets the preview byte length.

<!-- PowerForge markdown artifact sha256:4BC74723A35E4F180D4A5BDF0782049C80536853695FD8BFDFB69BD24288459D -->
