Declaration
property Magnify: TIELayerMagnification
Description
Set properties if the layer is a magnification layer.
A magnification layer allows a
TIEImageLayer to show a zoomed view of the underlying content.
Note:
◼Magnify cannot be enabled for the background layer (Layer 0)
◼Use
ResampleFilter to specify the quality/smoothing of the magnification
| Demos\Display\Magnify2\Magnify2.dpr |
// Add a round magnification layer to the image
// Create our magnify layer
ImageEnView1.LayersAdd( ielkImage );
magLayer := TIEImageLayer( ImageEnView1.CurrentLayers );
magLayer.Width := 200;
magLayer.Height := 200;
magLayer.VisibleBox := False; // Hide border
magLayer.Magnify.Style := iemEllipse;
magLayer.Magnify.Rate := 10; // 10x magnification
magLayer.Magnify.Source := iemBackgroundLayer;
magLayer.Magnify.Enabled := true;
magLayer.Transparency := 200; // 20% transparent
magLayer.UseResampleFilter := True;
magLayer.ResampleFilter := rfFastLinear; // Set quality
ImageEnView1.Update();
// Allow magnify layer to be moved and sized
ImageEnView1.MouseInteractLayers := [mlMoveLayers, mlResizeLayers];