DrawArc(pen, center, radius, startAngle, sweepAngle) DrawPie(pen, center, radius, startAngle, sweepAngle) DrawPie(pen, centerX, centerY, radius, startAngle, sweepAngle) DrawText(text, brush, font, centerX, centerY) SetViewport(leftWX, topWY, rightWX, bottomWY, maintainAspect) SetViewport(leftWX, topWY, rightWX, bottomWY, aspectXY) SetViewportHorz(worldLeft, worldRight, screenLeft, screenRight, maintainAspect) SetViewportVert(worldTop, worldBottom, screenTop, screenBottom, maintainAspect)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: void SetViewport(double, double, double, double, bool)- Declared in: RT.Util.Drawing.Canvas
Declarationpublic void SetViewport(
double leftWX,
double topWY,
double rightWX,
double bottomWY,
bool maintainAspect
) Summary
Sets the scaling and offset so that the world coordinate "leftWX" corresponds to the leftmost coordinate on
the screen, world "topWY" to the topmost screen coordinate, etc. If "maintainAspect" is "true", ensures that X
and Y scaling is the same, by making one of the axes show more than implied by the arguments passed in. |