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.


Examples


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

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