Zooming an image
-
I am having a form with a textbox and a button..the text box has the value of Zoom In percent..Say for instance 40..When the button is clicked...an image is to be zoomed(for 40%)..How cani do this? Any Clues? or if you have savings of code pl do send..wud b lot helpful.Thanks :)
-
I am having a form with a textbox and a button..the text box has the value of Zoom In percent..Say for instance 40..When the button is clicked...an image is to be zoomed(for 40%)..How cani do this? Any Clues? or if you have savings of code pl do send..wud b lot helpful.Thanks :)
Arun80403 wrote:
Any Clues?
Use Search.
Giorgi Dalakishvili #region signature my articles #endregion
-
Arun80403 wrote:
Any Clues?
Use Search.
Giorgi Dalakishvili #region signature my articles #endregion
-
cudnt find any...
Don't try to make someone love you..Try to be the one who can be loved...
Then read this: How to use google and other tips for finding programming help[^]
Giorgi Dalakishvili #region signature my articles #endregion
-
I am having a form with a textbox and a button..the text box has the value of Zoom In percent..Say for instance 40..When the button is clicked...an image is to be zoomed(for 40%)..How cani do this? Any Clues? or if you have savings of code pl do send..wud b lot helpful.Thanks :)
you zoom an image by drawing it bigger - look at the DrawImage overloads on the Graphics class that let you specify the area to draw AND the area to draw it to.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I am having a form with a textbox and a button..the text box has the value of Zoom In percent..Say for instance 40..When the button is clicked...an image is to be zoomed(for 40%)..How cani do this? Any Clues? or if you have savings of code pl do send..wud b lot helpful.Thanks :)
So yeah, like Chris said, use the DrawImage overloads. To zoom 40% you need to multiply the width of the image by 0.4, so something like
DrawImage???(myImage, myImage.Width*0.4...);
I'm not sure on what the overloads actually are, or what parameters they take. You will of course be needing to draw the image yourself, rather than using a pictureBox.My current favourite word is: Bacon!
-SK Genius