Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 135,922 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,604 people online right now. Registration is fast and FREE... Join Now!




Zooming an image

 
Reply to this topicStart new topic

Zooming an image

cp_123
16 May, 2008 - 09:51 AM
Post #1

New D.I.C Head
*

Joined: 16 May, 2008
Posts: 2

CODE
private void butZoom_Click(object sender, EventArgs e)
        {
            
          
            this.zoomin = Convert.ToInt32(this.tbZoom.Text);
             this.Hide();

            
        }


In the operation of zooming an image, I am retrieving the value from an XML file and storing the zoom in percentage in a variable called zoomin as
CODE
this.zoomin = Convert.ToInt32(this.tbZoom.Text);
..If the zoom level is 40%..How do I perform zooming.. not getting the clear idea..Any clues? or any sample codings pls for this operation
Now when the butZoom_Click event is triggered..The image in the picture box is to be zoomed.. ???


User is offlineProfile CardPM
+Quote Post

zakary
RE: Zooming An Image
16 May, 2008 - 10:05 AM
Post #2

D.I.C Regular
Group Icon

Joined: 15 Feb, 2005
Posts: 404



Thanked: 6 times
Dream Kudos: 175
My Contributions
not sure what this.zoomin is, where is the image. what is this.tbZoom.Text for you need to provide us with more information
User is online!Profile CardPM
+Quote Post

cp_123
RE: Zooming An Image
16 May, 2008 - 10:17 AM
Post #3

New D.I.C Head
*

Joined: 16 May, 2008
Posts: 2

QUOTE(zakary @ 16 May, 2008 - 11:05 AM) *

not sure what this.zoomin is, where is the image. what is this.tbZoom.Text for you need to provide us with more information



ya.. when a button in Form1 named as 'Zoom' is clicked..Form2 opens..Form2 has a textbox and a button..The textbox has the value of Zoom in Percent such as 40..(I read this value from an xml file, but that part is complete...no worry) Now when the button in Form2 is clicked, butZoom_Click is triggered and the image is zoomed in form1 which i have already opened...Hope I made u clear about this
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 08:13AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month