...

Online Help for Chasys Draw IES: SDK - Layer Attachments - NOTE


SDK - Layer Attachments - NOTE
 

Using the NOTE meta-type

The NOTE attachment (Author’s Comments/Notes) is used for capturing notes and comments from the author. It is a null-terminated plain-text (UTF-8) segment consisting of any author notes/comments. Author notes for the first layer are treated as notes for the entire image and are shown in a popup when the image is loaded.

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

 

Sample Code

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

int length;
char notes[3072];

... ...

//insert NOTE attachment
length=strlen(notes);
if(length)
{
    data->meta_data=(unsigned char*)notes;
    data->meta_write(data,"NOTE",
length+1); //include terminating NULL
}