Property PreviewIcon
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
PreviewIcon
Gets or sets the preview picture of the block, as AutoCAD's PreviewIcon gives it as a bitmap: here the bytes its
BLOCK_RECORD keeps, the groups 310 one after another, a bitmap of Windows without the file's header, as AutoCAD writes
it; null where it has none.
public byte[] PreviewIcon { get; set; }
Property Value
- byte[]
Set, written as groups 310 of 127 bytes each, after the record's other groups of AcDbBlockTableRecord; null takes them out. Bytes the same as those it has change nothing.
Exceptions
- InvalidOperationException
Thrown when set on a block made in code, on one of a file older than R2000 (AC1015), which has no previews, or on one erased.