Constructors
Properties
ContentPixelsPerControlPixel
#Gets the number of content pixels that fit inside a single control pixel.
ControlPixelsPerContentPixel
#Gets the number of control pixels that fit inside a single content pixel.
TransformMatrix
#public IMatrix TransformMatrix { get; }
Gets the transform matrix associated with this projection.
Methods
CushionProjection
#Cushion a projection so that the contents of a control are not moved too far outside the viewable region.
Parameters:
| control (IFlexControl) | Control to cushion. |
Returns: Cushioned projection.
Interpolate
#Interpolate between two projections.
Parameters:
| a (Projection) | |
| b (Projection) | |
| factor (float) |
PerformDollyZoom
#Zoom this projection while affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
PerformDollyZoom
#Zoom this projection while affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
Parameters:
| start (PointF) | Start of zoom in control coordinates. |
| end (PointF) | End of zoom in control coordinates. |
Returns: Zoomed projection.
PerformPan
#Pan this projection.
Parameters:
| start (PointF) | Panning start in control coordinates. |
| end (PointF) | Panning end in control coordinates. |
Returns: Panned projection.
PerformPan
#Pan this projection.
Parameters:
| motion (SizeF) | Panning motion vector in control coordinates. |
Returns: Panned projection.
PerformZoom
#Zoom this projection without affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
PerformZoom
#Zoom this projection without affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
Parameters:
| start (PointF) | Start of zoom in control coordinates. |
| end (PointF) | End of zoom in control coordinates. |
Returns: Zoomed projection.
SetCentre
#Create a new projection with the origin set such that a specific point is in the centre of the frame.
Parameters:
| centre (PointF) | Point in content coordinates to centre. |
| frame (RectangleF) | Frame in control coordinates to centre in. |
Returns: Modified projection.
SetFrame
#Create a new projection ensuring a content rectangle is fully visible within a framing rectangle.
SetOrigin
#Create a new projection using a different origin.
Parameters:
| origin (PointF) | New origin. |
Returns: Modified projection.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Projection | * | Projection | Projection | Multiply two projections. |