![]() |
Section =BITMAP= (File Sections) |
www.CAD6.com |
MKD SyntaxThe section =BITMAP= contains up to 1000 embedded bitmaps.
Head of Section=BITMAP=; BitmapNum;
Entry for each Embedded BitmapBitmapName,BitmapSize; BitmapDataSize[0],BitmapData[0]; ... BitmapDataSize[n],BitmapData[n];
End of Section=END=;
Element DescriptionBitmapNum [__int32] Number of embedded bitmaps to follow. Valid range is 0 to MKI_BITMAP_MAX inclusive. BitmapName [MKI_FILEREFERENCE] Name of the bitmap (including path), up to 255 characters. The first character of this name must always be '#' (Unicode 35) and should be followed by 'B ' and either the original file name or any unique identifier. A valid bitmap name would be #B c:\bitmaps\test.bmp or #B 05456-324-3578a8be0002. BitmapSize [__int32] Total size of the bitmap data to follow in bytes. This size must be exactly the sum of all BitmapDataSize values to follow. BitmapDataSize[x] [__int32] Number of bytes in the following binary data string. Valid range is 1 to 24000 inclusive. We recommend to split the bitmap data into blocks of at most 144 bytes of data each (resulting in line lengths below 255 characters). This will allow the user to load the resulting text file into most standard editors without problems. BitmapData[x] [BINARY] Binary string containing the bitmap data. The string may contain up to BitmapDataSize[x] bytes of data. If it contains less data, the remaining bytes are to be set to zero.
If the section =BITMAP= does not exist, assume no bitmap to be defined (BitmapNum = 0).
Example of an Embedded Bitmap"#B E:\\ICONS\\ERASER1.BMP",190; 14,"0dv^ #x"; 24,"* \" @ 0 ! \""; 24," \" #___\\"; 24,"jjjjjo____^k__jj_____z_y_jk_y/__"; 24,"oxi^joy4/_^^jczj_u4?_[\\j&jk_51__"; 24,"kzj*jo^5#_^jj*jj_]/7_zj/tjk_w]?_"; 24,"jj_jjo_oz_^jk^jj__?u_zjgy*k_]yg_"; 24,"jji\\jo_y_/^jj?*j__[/_zjk*jk_____"; 8,"jjjjjo____\\";
This is the definition of the bitmap "Eraser1.bmp".
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH