ImageEn, unit iexDefs

TIEOriginLock

TIEOriginLock

Declaration

TIEOriginLock = (ieolNever, ieolAutoInactive, ieolAutoActive, ieolAlways);

Description

Value Description
ieolNever The magnification source is always the centered beneath the layer
ieolAutoInactive The magnification source is the centered beneath the layer, but holding down the ALT key will lock it at the current position (auto change it to ieolAutoActive)
ieolAutoActive The magnification source is locked at OriginX/Y, but moving the layer will reset the source position (auto change it to ieolAutoInactive)
ieolAlways The magnification source is locked at OriginX/Y. Moving the layer will not change the source position

Demo

Demo  Demos\Display\Magnify2\Magnify2.dpr

Examples

// Show magnifying layer for area centered at 200,200
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginX := 200;
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginY := 200;
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginLock := ieolAlways;
ImageEnView1.Update();

// Show magnifying layer for area centered at 200,200, but reset the position if the user moves the layer
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginX := 200;
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginY := 200;
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginLock := ieolAutoActive;
ImageEnView1.Update();

// Do not allow the ALT key to lock the origin
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginLock := ieolNever;
ImageEnView1.Update();

// Source position is not locked, but user can hold ALT key to lock it (Default)
TIEImageLayer( ImageEnView1.CurrentLayers ).Magnify.OriginLock := ieolNever;
ImageEnView1.Update();