Property | Type | Description | |
---|---|---|---|
ConvertToPaint | Point | ||
ConvertToPaint | Rect | ||
FromSourceAndDest | |||
ToPaint | Rect |
Method | Description | |
---|---|---|
PaintTransform ( int dxLayout, int dyLayout, int dpiXLayout, int dpiYLayout, int dxScroll, int dyScroll, int dpiXPaint, int dpiYPaint ) : System | ||
PaintTransformOffsetBy ( int dx, int dy ) : |
Answer a layout transform (actually a PaintTransform) suitable for a child box whose left and top are dx and dy.
|
|
ToLayout ( Point paintPoint ) : Point |
Convert a point in paint coordinates to one relative to the box that uses this transformation.
|
|
ToLayoutX ( int x ) : int |
Convert an X coordinate from paint to layout coords.
|
|
ToPaint ( Point layout ) : Point |
Convert a complete point to Painting coordinates (not yet tested)
|
|
ToPaint ( |
Convert a rectangle relative to the box for which this transform is configured to one in paint coordinates. Todo: tests and implementation of differing DPI and non-zero ScrollOffset.
|
|
ToPaintX ( int xs ) : int |
Convert a position relative to the box for which this is the transform to one in paint coordinates. Todo: tests and implementation of differing DPI and non-zero ScrollOffset.
|
|
ToPaintY ( int ys ) : int |
Convert a position relative to the box for which this is the transform to one in paint coordinates. Todo: tests and implementation of differing DPI and non-zero ScrollOffset.
|
Method | Description | |
---|---|---|
ConvertToPaint ( Point source, Rect srcRect, Rect dstRect ) : Point |
Currently not used: given a point in destination coordinates and two rectangles such as are returned by SourceRect and DestRect, generate the point (ToPaintX(source.X), ToPaintY(source.Y)) that would be returned by a transformation represented by that transformation. (not yet used or tested)
|
|
ConvertToPaint ( Rect source, Rect srcRect, Rect dstRect ) : Rect |
Currently only used in testing: given a point in destination coordinates and two rectangles such as are returned by SourceRect and DestRect, generate the point (ToPaintX(source.X), ToPaintY(source.Y)) that would be returned by a transformation represented by that transformation. (not yet used or tested)
|
|
FromSourceAndDest ( Rect srcRect, Rect dstRect ) : |
Return the PaintTransform that would produce the indicated Source and Dest Rects.
|
|
ToPaint ( Rect rLayout ) : Rect |
Convert a rect relative to the box for which this transform is configured to one in paint coordinates. Todo: tests and implementation of differing DPI and non-zero ScrollOffset. Currently only used in making test data.
|
public PaintTransform ( int dxLayout, int dyLayout, int dpiXLayout, int dpiYLayout, int dxScroll, int dyScroll, int dpiXPaint, int dpiYPaint ) : System | ||
dxLayout | int | |
dyLayout | int | |
dpiXLayout | int | |
dpiYLayout | int | |
dxScroll | int | |
dyScroll | int | |
dpiXPaint | int | |
dpiYPaint | int | |
return | System |
public PaintTransformOffsetBy ( int dx, int dy ) : |
||
dx | int | |
dy | int | |
return |
public ToPaint ( |
||
rLayout | ||
return |