in reply to rescaling the image screen

in Perl when doing some drawings or animations.

Sure its possible if its supported by whatever that something you're using in Perl when doing some drawings or animations supports it, and most of those things that support drawing/animations support scaling