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
#Gets the transform matrix associated with this projection.
public IMatrix TransformMatrix { get; }
Methods
CushionProjection
#Cushion a projection so that the contents of a control are not moved too far outside the viewable region.
Returns: Cushioned projection.
PerformDollyZoom
#Zoom this projection while affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
public Projection PerformDollyZoom()
PointF
start,
Start of zoom in control coordinates.
PointF
end,
End of zoom in control coordinates.
minimumZoom,
Lowest allowable zoom factor.
maximumZoom
Highest allowable zoom factor.
Returns: Zoomed projection.
PerformDollyZoom
#Zoom this projection while affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
public Projection PerformDollyZoom()
PointF
start,
Start of zoom in control coordinates.
PointF
end
End of zoom in control coordinates.
Returns: Zoomed projection.
PerformPan
#Pan this projection.
public Projection PerformPan()
PointF
start,
Panning start in control coordinates.
PointF
end
Panning end 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%.
public Projection PerformZoom()
PointF
start,
Start of zoom in control coordinates.
PointF
end,
End of zoom in control coordinates.
minimumZoom,
Lowest allowable zoom factor.
maximumZoom
Highest allowable zoom factor.
Returns: Zoomed projection.
PerformZoom
#Zoom this projection without affecting the origin. Only the vertical motion matters and zooming always snaps to 100%.
public Projection PerformZoom()
PointF
start,
Start of zoom in control coordinates.
PointF
end
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.
public Projection SetCentre()
PointF
centre,
Point in content coordinates to centre.
RectangleF
frame
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.
public Projection SetFrame()
RectangleF
bounds,
Container frame in control coordinates.
RectangleF
focus,
Rectangle in content coordinates to focus on.
minZoom,
Minimum allowed zoom.
maxZoom
Maximum allowed zoom.
Returns: Modified projection.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Projection | * | Projection | Projection | Multiply two projections. |