TRasterLayer32

Hierarchy

   |

TLayer32

   |

THitTestLayer32

   |

TRotateLayer32


TRasterLayer32, as its name implies, has been designed to display raster images. However, rather than assigning images directly to the Image property, the MasterImage property should be assigned instead. This way, whenever the layer is resized or rotated, the layer's Image can be update automatically using a MasterImage transformation. This accommodates any number of layer scalings and rotations without without degrading the displayed image (and without altering MasterImage).

Note: It's important that MasterImage has any transparent pixels around it cropped to prevent the display image offsetting when starting a layer rotation.



Reference

Methods Properties
In TRasterLayer32:
Rotate Angle
UpdateHitTestMaskOpaque AutoSetHitTestMask
UpdateHitTestMaskTransparent MasterImage
Matrix
In TRotateLayer32:
ResetAngle AutoPivot
PivotPt
In THitTestLayer32:
HitTestEnabled
In TLayer32:
BringForwardOne BlendFunc
BringToFront Bounds
Create ClipPath
Destroy CursorId
Offset Height
PositionAt Image
PositionCenteredAt Index
SendBackOne Left
SendToBack MidPoint
SetBounds Name
SetSize Opacity
Parent
RootOwner
Top
UserData
Visible
Width