ImageEn, unit iexBitmaps

TIEBaseBitmap.Access

TIEBaseBitmap.Access


Declaration

property Access: TIEDataAccess;


Description

Specifies whether the bitmap is readable or/and writable. This works only when Location is ieFile to speed up reading and writing operations.

The default value is [iedRead, iedWrite] which allows read and write.

Note: Inherited from TIEBaseBitmap


Examples

// set write-only when loading input.tif (in reality this is automatic!)
ImageEnView1.IEBitmap.Access := [iedWrite];
ImageEnView1.IO.LoadFromFile('D:\Input.tif');
ImageEnView1.IEBitmap.Access := [iedWrite, iedRead];  // restore

// set read-only when saving output.tif (in reality this is automatic!)
ImageEnView1.IEBitmap.Access := [iedRead];
ImageEnView1.IO.SaveToFile('D:\Output.tif');
ImageEnView1.IEBitmap.Access := [iedWrite, iedRead];  // restore