ImageEn, unit iexBitmaps

TIOParams.ReadIPTCField

TIOParams.ReadIPTCField


Declaration

function ReadIPTCField(iRecNo, iFieldIndex: Integer): string;
procedure ReadIPTCField(iRecNo, iFieldIndex: Integer; Dest: TStrings);


Description

Return a value from an IPTC field. Fields such as Photoshop's keyword field may have multiple instances. In this case the first method will return a comma separated string, whereas the second will add each instance to the TStrings object


Examples

// Read the Photoshop description
sDescription := ImageEnIO1.Params.ReadIPTCField(PhotoShop_IPTC_Records, IPTC_PS_Caption);

// Read all the Photoshop keywords (comma-separated):
sKeywords := ImageEnIO1.Params.ReadIPTCField(PhotoShop_IPTC_Records, IPTC_PS_Keywords);

// Add all Photoshop keywords to a Listbox:
ImageEnIO1.Params.ReadIPTCField(PhotoShop_IPTC_Records, IPTC_PS_Keywords, MyListBox.Items);


See Also

- Photoshop IPTC consts
- WriteIPTCField
- IPTC_Photoshop