canvas scale
Scales the coordinates of the items about a point.
PATHNAME scale TAGORID X0 Y0 SX SY
Description
Changes each coordinate of each item of TAGORID: the distance from X0 is multiplied by SX, and the distance from Y0 by SY. The width of a line and the size of a text stay the same.
Returns
An empty string.
Examples
% canvas .sc
> .sc create rectangle 10 10 20 20
> .sc scale 1 0 0 2 2
> .sc coords 1
20.0 20.0 40.0 40.0
Errors
% canvas .sc2; .sc2 scale
wrong # args: should be ".sc2 scale tagOrId xOrigin yOrigin xScale yScale"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1