ImageEn, unit iexBitmaps

TIEMarkerList


Declaration

TIEMarkerList = class;


Description

TIEMarkerList contains the list of markers loaded from a jpeg.


Methods and Properties

Public Method  AddMarker
Public Method  Assign
Public Method  Clear
Public Method  ClearExcept
Public Property  Count
Public Method  DeleteMarker
Public Method  DeleteMarkerInstances
Public Method  IndexOf
Public Method  InsertMarker
Public Method  LoadFromStream
Public Property  MarkerData
Public Property  MarkerLength
Public Property  MarkerStream
Public Property  MarkerType
Public Method  SaveToStream
Public Method  SetMarker


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');