WriteMarkerAction example for C++ Builder
void __fastcall TForm1::LEADImage1TransformMarker (int iMarker, int lSize,
Pointer pData, int iTransform)
{
// I will replace the comment present in the file with my own comment
if (iMarker == 0xFE)
{
LEADImage1->WriteMarkerAction= WRITEMARKER_IGNORE;
LEADImage1->WriteMarker (iMarker, 10, PChar("My comment"));
}
}
//Rotate the file 90 degrees
LEADImage1->TransformFile ("c:\\temp\\1.jpg", "c:\\temp\\2.jpg", FILE_TRANSFORM_ROTATE90, 1);