CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Changing Scales:

You can change the scales for all objects by invoking the member function scale for any object. This will not redraw the screen, though.

 

Example:

Circle c1,c2,c3;
c1.scale( newunits/pixunits,newunits/pixunits);

 

where :

newunits/pixunits is the desired scale

(may differ for x and y)

Note:

If you declare Boxes and do not place them in a location, the software will assign a location that may not fit in your screen.