I'm developing windows application using c#.net (vs 2003), i've placed
several images (picture boxes) in panel control and i want to zoom the
panel control so that the images and text which contained in the panel
control has to be zoomed and i want to work on that zoomed portion like we
work in photo shop by zooming the image.
can anybody tell me how to do this one using gdi+, or suggest me with some
articles which suies my requirement.
Regards
yoshitha
Wiebe Tijsma - 29 Sep 2006 14:34 GMT
Hi,
Take a look at Paint.NET, it contains loads of imaging (photoshop-like)
functionality:
http://www.getpaint.net/index.html
Regards,
Wiebe Tijsma
> I'm developing windows application using c#.net (vs 2003), i've placed
> several images (picture boxes) in panel control and i want to zoom the
[quoted text clipped - 7 lines]
> Regards
> yoshitha
Michael Nemtsev - 29 Sep 2006 14:47 GMT
See sample there http://www.codeproject.com/cs/miscctrl/ZoomControl.asp

Signature
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
> I'm developing windows application using c#.net (vs 2003), i've placed
> several images (picture boxes) in panel control and i want to zoom the
[quoted text clipped - 7 lines]
> Regards
> yoshitha
Matthias Pieroth - 29 Sep 2006 20:15 GMT
Hi Yoshitha,
Checkout the gdi+ articles of my page, there is one for zooming, too:
http://www.codegod.de/WebAppCodeGod/Main.aspx?search_content=gdi
Bye,

Signature
Matthias Pieroth
www.codegod.de - The Page for .NET-developers
Dave Sexton - 30 Sep 2006 07:23 GMT
Hi Yoshitha,
If you are trying to zoom a collection of image controls and text-based controls all at once, you might want to try embedding a
WebBrowser control instead and use HTML to define the images and text. Doing so will allow you to use the built-in zoom
functionality in the WebBrowser and you'll have a lot more control over the layout and style.
CSS zoom style on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/referen
ce/properties/zoom.asp
Here's an example that you can save to disc as an .htm file to see what zoom does. ("zoom" only works in IE. Valid image
references aren't required for the example to work):
<html>
<head></head>
<body style="zoom: 200%">
<img src="someimage.jpg" />
<span>And this is some text to go with it</span><br /><br />
<img src="anotherimg.jpg" />
<span>And yet more text.</span>
</body>
</html>
.NET 2.0
To use the html source at runtime you can save it to a file on disc and browse to it using the WebBrowser.Url property or you can
save it as an embedded resource in your assembly and stream it into the browser using the WebBrowser.DocumentStream property or
WebBrowser.DocumentText property.
WebBrowser control on MSDN:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
.NET 1.*
Here you'll have to access the DOM directly if you want to write the html into the browser, otherwise you can just call the Navigate
method with a url to your source .htm file on disc. You need a reference to the WebBrowser control from the COM tab and a reference
to the mshtml COM library (to access the DOM), IIRC.
COM WebBrowser control on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/r
eference/objects/webbrowser.asp

Signature
Dave Sexton
> I'm developing windows application using c#.net (vs 2003), i've placed
> several images (picture boxes) in panel control and i want to zoom the
[quoted text clipped - 7 lines]
> Regards
> yoshitha