Available in the LEADTOOLS Imaging toolkit. |
WriteMarkerAction example for C++ 4.0 and later
void CTestDlg::OnTransformFile()
{
// Rotate the file 90 degrees
m_Lead1.TransformFile("c:\\temp\\1.jpg", "c:\\temp\\2.jpg", FILE_TRANSFORM_ROTATE90, 1);
}
void CTestDlg::OnTransformMarkerLeadctrl1(short iMarker, long lSize, const VARIANT FAR& vData, short iTransform)
{
// I will replace the comment present in the file with my own comment
if(iMarker == 0xFE)
{
COleVariant MyCommentString = CString("My comment");
m_Lead1.SetWriteMarkerAction(WRITEMARKER_IGNORE);
m_Lead1.WriteMarker(iMarker, 10, MyCommentString);
}
}