By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,056 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,056 IT Pros & Developers. It's quick & easy.

how to zoom

P: n/a
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
Sep 29 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

Take a look at Paint.NET, it contains loads of imaging (photoshop-like)
functionality:
http://www.getpaint.net/index.html

Regards,

Wiebe Tijsma

Yoshitha wrote:
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

Sep 29 '06 #2

P: n/a
See sample there http://www.codeproject.com/cs/miscctrl/ZoomControl.asp

--
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


"Yoshitha" wrote:
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
Sep 29 '06 #3

P: n/a
Hi Yoshitha,

Checkout the gdi+ articles of my page, there is one for zooming, too:

http://www.codegod.de/WebAppCodeGod/...ch_content=gdi

Bye,

--
Matthias Pieroth
www.codegod.de - The Page for .NET-developers
Sep 29 '06 #4

P: n/a
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/de...rties/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/lib...ebbrowser.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/de...webbrowser.asp

--
Dave Sexton

"Yoshitha" <gu**********@yahoo.co.inwrote in message news:OH**************@TK2MSFTNGP04.phx.gbl...
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


Sep 30 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.