ImageEn, unit iexBitmaps

TIOParams.JPEG_MarkerList

TIOParams.JPEG_MarkerList


Declaration

property JPEG_MarkerList: TIEMarkerList;


Description

Contains a list of the markers within a JPEG file (from APP0 to APP15 and COM). JPEG markers can contain text, objects and images. Applications can read/write raw markers from JPEG_MarkerList using a stream or memory buffer.


Examples

// Read the JPEG_COM marker  (idx is integer, Comment is string)
ImageEnView1.IO.LoadFromFile('C:\image.jpg');
Idx := ImageEnView1.IO.Params.JPEG_MarkerList.IndexOf(JPEG_COM);
Comment := ImageEnView1.IO.Params.JPEG_MarkerList.MarkerData[idx];

// Now writes the JPEG_COM marker
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');