Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Zoom in GDI+

113 views
Skip to first unread message

Srinivas

unread,
Sep 25, 2003, 1:51:30 PM9/25/03
to
Hi,

Is there any Zoom support in GDI+.I want to have zoom to
interesting kind of feature.

Please advise.

Thanks In Advance.
Srinivas

John Hornick [MSFT]

unread,
Sep 25, 2003, 6:04:01 PM9/25/03
to
Hi,

> Is there any Zoom support in GDI+.I want to have zoom to
> interesting kind of feature.


See Graphics.ScaleTransform().

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.

Srinivas

unread,
Sep 25, 2003, 7:24:41 PM9/25/03
to
Thanks! John. It works great.

Srinivas

>.
>

Srinivas

unread,
Sep 25, 2003, 8:19:40 PM9/25/03
to
Hi John,

The scaling works fine both horizontaly and verticaly,
but my requirement is different here:-
I have a JPG image and need to Zoom only a part of the
image and need to display.Can this be achieved in GDI+

Thanks In Advance.
Srinivas

>.
>

Mike D Sutton

unread,
Sep 26, 2003, 5:26:29 AM9/26/03
to
> The scaling works fine both horizontaly and verticaly,
> but my requirement is different here:-
> I have a JPG image and need to Zoom only a part of the
> image and need to display.Can this be achieved in GDI+

The DrawImage() method of the Graphics object should do this for you, see this page for examples:
http://www.bobpowell.net/drawing_an_image.htm
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: ED...@mvps.org
WWW: Http://www.mvps.org/EDais/


0 new messages