Two years ago Airshow helped me with a Vertical Slider Zoom feature for a project of mine. Now I have a need to do the same but with a Horizontal Slider to zoom a photo. I need the slider in this example, [http://bbhs69.com/senior_class_photo_copy(1).htm](http://bbhs69.com/senior_class_photo_copy(1).htm), to be horizontal and at the very top of the page. I am using the example from http://developer.yahoo.com/yui/examples/slider/slider-ticks.html. I have tried to use the code section Airshow came up with into this new project but I have not been able to get the photo to zoom. Can anyone help me? In the code below the two sections …

Member Avatar
Member Avatar
+0 forum 3

I have a project on image processing. I have a picturebox with an image loaded in it via a openfiledialog box. I was trying to zoom an image in the picturebox by certain pecentage i.e **50%, 100% 150%** and **200%** . All this is done when a user clicks on a menutool strip option. I have the following code but it is not working: private void toolStripMenuItem2_Click(object sender, EventArgs e) //coding for 50% zoom { if (img != null) { Graphics g = Graphics.FromImage(img); int zoom=50/100; int newwidth = Convert.ToInt32(pictureBox1.Width * zoom); int newheight = Convert.ToInt32(pictureBox1.Height * zoom); Rectangle r …

Member Avatar
Member Avatar
+0 forum 4

how can i zoom an image inside a picturebox? and i also want to know how can i make a picture inside the picturebox draggable while at the same time, it can be zoomed in and out. my goal is to crop an image inside the picturebox and i can zoom and drag the image inside if necessary, thanks :)

Member Avatar
Member Avatar
+0 forum 2

The End.