Table of Contents

Class DwgPreview

Namespace
DwgIO.Model
Assembly
DwgIO.dll

The thumbnail image embedded in the AcDb:Preview section. AutoCAD 2013+ emits PNG previews (code 6), older files BMP (code 2) or WMF (code 3).

public sealed class DwgPreview

Inheritance

Inherited Members

Properties

HasImage

True when DwgIO.Model.DwgPreview.ImageBytes is not empty.

public bool HasImage { get; }

Property Value

bool

ImageBytes

Image bytes (BMP/PNG/WMF as stored) — empty when no image is present.

public required byte[] ImageBytes { get; init; }

Property Value

byte[]

ImageKind

Format of DwgIO.Model.DwgPreview.ImageBytes.

public required DwgPreviewImageKind ImageKind { get; init; }

Property Value

DwgPreviewImageKind

OverallSize

Overall size reported by the preview header.

public required uint OverallSize { get; init; }

Property Value

uint