...

Chasys Draw IES Help:


SDK - Layer Attachments - MARK
 

Using the MARK meta-type

The MARK attachment allows plug-ins to pass on descriptive information such as EXIF data. It is a null-terminated plain-text (UTF-8) segment consisting of keywords and values separated by the equals sign, e.g.:

image.hotspot=12,15;
image.bpp=32;

All keywords must take the form [namespace.parameter]. This is to avoid conflicts. For example, a blah plug-in could append the following mark-up to a layer:

blah.engine="OpenGL";
blah.import="mesh1.x";
blah.max_size=4096;

The terminating NULL character must be included for the attachment to be valid.
Sample Code

Here's some sample code that creates MARK metadata:
TAGS: Chasys Draw IES Source Code, Attachment, Metadata, MARK

int dpi_x,dpi_y;
char markup[3072];

... ...

//insert MARK attachment
if(data->meta_write)
{
    
_snprintf(markup,3072,
        "image.ppi=%i,%i;\r\n",
        dpi_x,dpi_y);
    data->meta_data=(unsigned char*)markup;
    data->meta_write(data,"MARK",
strlen(markup)+1);
}