Article View: comp.windows.interviews
Article #333zooming a tiff image
From: Joseph John Butare, III
Date: Wed, 15 Apr 1992 16:18
Date: Wed, 15 Apr 1992 16:18
13 lines
1024 bytes
1024 bytes
I would like to be able display a tiff image which can be resized and zoomed. I know how to resize the image using the scale to fit example, but what is the best way to zoom in on a portion of the image? Should I use canvas::clip_rect() and then scale the clipped region with canvas::transform()? Also, is there any documentaion on canvas::push_transform(), canvas::push_clipping(), and related methods? ScaleToFit uses push_transform() but it is not clear what it is doing. Could someone post a brief description about what these functions are for? Thanks for any help! John
Technical Details
Message-ID:
<kdv5RR600UhBE2PYNF@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!jb7p+Show Full Headers
Complete Article Headers
Organization: Fifth yr. senior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!jb7p+ Newsgroups: comp.windows.interviews Message-ID: <kdv5RR600UhBE2PYNF@andrew.cmu.edu> Date: Wed, 15 Apr 1992 12:18:37 -0400 From: "Joseph John Butare, III" <jb7p+@andrew.cmu.edu> Subject: zooming a tiff image Lines: 14