ImageEn, unit imageenview

TImageEnView.LayersTextRotateMode

TImageEnView.LayersTextRotateMode


Declaration

property LayersTextRotateMode: TIERotateMode;


Description

Specifies whether rotation of text layers by the user (using mlRotateLayers rotates the text, border shape or both.

Notes:
- RotateMode only affects user rotation of the layer, not programatic changes
- Rotation of the text is specified by Rotate. Rotatation of the border is set by BorderRotate

Default: iermTextOnly


Examples

// Rotating the layer rotates the border shape (leaving the text at zero deg.)
ImageEnView1.LayersTextRotateMode := iermShapeOnly;

// Rotating the layer rotates both the text and the border shape
ImageEnView1.LayersTextRotateMode := iermBoth;

// Add a "Shape" layer with text
ImageEnView1.LayersAdd( ielkText, 800, 300, 400, 400 );
ImageEnView1.CurrentLayer.AspectRatioLocked := true;
TIETextLayer( ImageEnView1.CurrentLayer ).BorderShape := iesHeart;
TIETextLayer( ImageEnView1.CurrentLayer ).Alignment := iejCenter;
TIETextLayer( ImageEnView1.CurrentLayer ).Layout := ielCenter;
TIETextLayer( ImageEnView1.CurrentLayer ).WordWrap := False;
TIETextLayer( ImageEnView1.CurrentLayer ).Text := 'I Heart Delphi';
TIETextLayer( ImageEnView1.CurrentLayer ).Font.Size := 42;
TIETextLayer( ImageEnView1.CurrentLayer ).TextOverflow := ieoShrink;
TIETextLayer( ImageEnView1.CurrentLayer ).HorzMargin := 0.30;
ImageEnView1.CurrentLayer.BorderColor := clBlack;
ImageEnView1.CurrentLayer.FillColor := clRed;
ImageEnView1.LayersTextRotateMode := iermBoth;
ImageEnView1.Update();


See Also

- Rotate
- BorderRotate
- MouseInteractLayers