ImageEn, unit iexBitmaps

TIEMarkerList.SetMarker

TIEMarkerList.SetMarker


Declaration

procedure SetMarker(idx: integer; marker: byte; data: PAnsiChar; datalen: word);


Description

Replace the marker, idx.


Examples

ImageEnView1.IO.LoadFromFile('C:\image.jpg');
Idx := ImageEnView1.IO.Params.JPEG_MarkerList.IndexOf(JPEG_COM);
Comment := 'This is the new comment';
ImageEnView1.IO.Params.JPEG_MarkerList.SetMarker(idx, JPEG_COM, PAnsiChar(Comment), length(Comment));
ImageEnView1.IO.SaveToFile('D:\image.jpg');