Raster Image data in LiteCAD LCD file Home

LiteCAD LCD file format

Data Type Amount Description
Int64 1 Unique Identifier. LC_PROP_TABLE_ID
String 1 Name. LC_PROP_TABLE_NAME
String 1 Description. LC_PROP_TABLE_DESCR
Int32 1 Flags
Int32 1 Sort priority. LC_PROP_TABLE_PRIORITY

   Application-specific data. LiteCAD don't uses this data, only provides access and storage
Int32 5 Application-specific integer values. LC_PROP_TABLE_INT0...LC_PROP_TABLE_INT4
Double 5 Application-specific floating-point values. LC_PROP_TABLE_FLOAT0...LC_PROP_TABLE_FLOAT4

   The below 2 records are exist if (Flags & 0x40000000)
Int32 1 Size (N) of application-specific XDATA buffer (number of bytes). LC_PROP_TABLE_XDATASIZE.
Byte N Application-specific XDATA buffer. LC_PROP_TABLE_XDATA

   Raster image data
String 1 Image file name.   LC_PROP_IMAGE_NAME
Int16 1 Image width (pixels).   LC_PROP_IMAGE_WPIX
Int16 1 Image height (pixels).   LC_PROP_IMAGE_HPIX

   If (Flags & 0x00000020) then (created programmatically)
Int8 1 Color depth

   If (Flags & 0x00000010) then (embedded image)
Int32 1 Size of image (bytes)
Int32 1 Size (N) of compressed image data (bytes)
Byte N Bytes of image data