I have this code: If e.Delta <> 0 Then If e.Delta <= 0 Then If PictureBox1.Width < 500 Then Exit Sub 'minimum 500? Else If PictureBox1.Width > 2000 Then Exit Sub 'maximum 2000? End If PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / 1) PictureBox1.Location = New Point(Control.MousePosition.X - PictureBox1.Width / 2, Control.MousePosition.Y - PictureBox1.Height / 2) End If which zooms the PictureBox to the center of the cursor location, but when I insert the picturebox to a panel, the image does not properly zoom in to the center of the image, instead to the edge …

Member Avatar
Member Avatar
+0 forum 4

hi please help me. i have a google map on my website, but i cant get it to zoom out to show the circle radius, and it seems to be zooming only to view the markers. how can i zoom out to show the radius of the map? see below the javascript code i currently have class SphericalGeometry { const EQUALS_MARGIN_ERROR = 1.0E-9; // Earth's radius (at the Ecuator) of 6378137 meters. const EARTH_RADIUS = 6378137; public static function getEarthRadius() { return self::EARTH_RADIUS; } /** * Computes a bounding rectangle (LatLngBounds instance) from a point and a given radius. * …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to zoom in on a Picturebox when scrolling the mousewheel, the code below zooms in on the image only to the center of the image, not at the current cursor position. How would I fix this? PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / 1) PictureBox1.Location = New Point(Control.MousePosition.X - PictureBox1.Width / 2, Control.MousePosition.Y - PictureBox1.Height / 2)

Member Avatar
Member Avatar
+0 forum 6

I want to create a map, with image of a floor plan. As the user zooms in or out, or moves the image around the form and clicks on a room to see more information about it, it will be possible. I'm thinking of creating labels or buttons with opasity set to 0%, over the rooms. However, when I zoomed in, the label stayed in the same location, it didn't move with the image as it was zoomed in/out, moved. How could this be solved in a painless way. Thanks for you efforts.

Member Avatar
Member Avatar
+0 forum 13

How to design a grid(like a chessboard) of pictures in html with a property that the content of an individual cell covers the entire grid on onmouseover and again it comes back to its place i.e the cell on onmouseout?

Member Avatar
Member Avatar
+0 forum 1

Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be possible with a click of a button. I was able to do everything said above for the exception that after the user clicks on the reset button and zooms again, the previous size of the image is shown with the position where it was before the reset button was pressed. …

Member Avatar
Member Avatar
+0 forum 9

please help on my codes ...this works good in firefox but in internet explorer it gets disarrange. also, if im gonna zoom in/out in both browsers it also got disarrange.thanks index.php <?php session_start(); //Unset the variables stored in session unset($_SESSION['SESS_ID']); unset($_SESSION['SESS_LNAME']); unset($_SESSION['SESS_FNAME']); unset($_SESSION['SESS_MNAME']); unset($_SESSION['SESS_SUFFIX']); if (isset($_GET['page'])) { $pg = $_GET['page']; } else { $pg=1; } ?> <style type="text/css"> body { background-image:url(images/login.jpg); background-position:center center; background-repeat:no-repeat; margin-top: 260px; background-attachment:fixed; } </style> <html> <body> <div> <?php if ($pg==1){ include 'admin/login.php'; } ?> </div> </body> </html> login.php <?php include 'config/connect.php'; ?> <style type="text/css"> <!-- .ed{ border-style:solid; border-width:thin; border-color:#0076a3; font-weight: bold; padding:8px; margin-bottom: 4px; } …

Member Avatar
Member Avatar
+0 forum 4

I have several thumbnails on my page which I would like to enlarge on mouseover and revert them to their initial position on mouseout. So when the user mouses over any of the aforementioned thumbnails onmouseover is called triggering MLTo function and when the mouse is out, onmouseout triggers MLFro function and reverts the image to its initial position. This is the code that I've written, but it has several flaws! Firstly, I've tested it in Opera,Chrome,Safari,IE and Firefox (all are the latest versions). In the first 4 browsers the script doesn't load the CPU, but in Firefox it loads …

Member Avatar
Member Avatar
+0 forum 5

I have the following css style for a div #central_content { float:left; width:697px; margin:-5px 0px 0px 0px; padding:0px 0px 0px 0px; position:relative; } Everything displays perfectly on 100% zoom in Google chrome. When i zoom out the contents within this div get messed up, aligning themselves to the left of the page instead of the middle where they were. I'm confused. How do i fix this? Thanks

Member Avatar
Member Avatar
+0 forum 7

anyone could give me the code with function like below link, http://www.modcloth.com/shop/beauty/thebalm-natural-instincts-eyeshadow-palette I have mutiple photoes in one page, would like to display photo when the mouse is over it, the enlarged photo should in a fix position, and when the mouse leave the photo, the enlarged picture disappeared. thanks,

Member Avatar
Member Avatar
+0 forum 1

Hi everybody, I'd like to know if there is a way to zoom a page in the webkitbrowser control in vb net. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

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 to crop an image that is zoomed(zoomed in/out). Cropping works fine when the image is normal, that is not zoomed. I have used a panel whose AutoScroll property is true and a picturebox inside the panel whose sizemode property is AutoSize and BackgroundImageLayout is Tile. Load image: [CODE] Image img = Image.FromFile("filepath"); picBoxImageProcessing.Image = img;[/CODE] zoom in: [CODE] zoomFactor += 1; picBoxImageProcessing.Size = new Size((img.Width * zoomFactor), (img.Height * zoomFactor)); picBoxImageProcessing.SizeMode = PictureBoxSizeMode.StretchImage;[/CODE] cropping: Draw a rectangular shape on the image and then crop. [CODE]Crop(Image img, Rectangle r) { // }[/CODE] In this way when i zoom in first …

Member Avatar
+0 forum 0

Hi I have been trying to implement the zooming of images on mouse over but could not do it because: 1) I am not doing the 'list' kind of display of images. 2) I dont want other images at several positions to be distorted while one image zooms. 3) I need something by which i need not modify the large chunk of code which i used for displaying a collage of images. Suggest something...

Member Avatar
Member Avatar
+0 forum 2

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

Hey, I have this very irritating issue which i was unable to solve for a couple of weeks. I am an amateur designer trying to design a site for my company. The problem I face here is this: 1. I create a menu within a container, with the same width of the container. 2. When Zoom in/out (CTRL+scroll) The last element (Contact Us) Shifts to the next line or the whole menu bar is compressed. I have attached the HTML code and the CSS. Please do help me out here. [COLOR="Red"]HTML:[/COLOR] [CODE] <div id="menu"> <ul> <li><a rel="#00CCFF" href="Index.html">Home</a></li> <li><a href="AboutUs.html">About</a></li> …

Member Avatar
Member Avatar
+0 forum 2

Hi experts, I am trying to find the current level of zoom in a webbrowser control. I know how to zoom but the same doesn't work for retrieving the current level of zoom. I am trying the following: [CODE] Dim currentZoom As Integer DirectCast(Me.ActiveXInstance, SHDocVw.WebBrowser).ExecWB(Exec.OLECMDID_OPTICAL_ZOOM, ExecOpt.OLECMDEXECOPT_PROMPTUSER, IntPtr.Zero, currentZoom) [/CODE] But I keep getting a value of 0 in currentZoom. Here is the MSDN documentation on this: [url]http://msdn.microsoft.com/en-us/library/ms691264%28VS.85%29.aspx[/url] In the documentation you will see the following information regarding extracting the current zoom level: "To query the current zoom value. The caller of IOleCommandTarget::Exec passes OLECMDEXECOPT_DONTPROMPTUSER as the execute option in nCmdExecOpt …

Member Avatar
+0 forum 0

I'm working on an entertainment site and there is some design mistake which I made. But everything looks good if zoomed out in 83% on chrome and 75% on mozilla and IE. What is the solution to resize everything or there is another way?

Member Avatar
Member Avatar
+0 forum 2

I have a parent form (Form1) that holds four childForms (childForm1, childForm2, childForm3, childForm4). The childForms can get pretty big, and I'd like the user to be able to use the scrollwheel on their mouse to zoom the screen in and out so that they can get a 'big picture' view of what's going on. The important parts are that the user can accomplish this using their mousewheel, all of the forms on the screen shrink/grow at the same time, and the action/animation looks smooth enough to not induce motion sickness. Normally I post whatever code is giving me a …

Member Avatar
Member Avatar
+2 forum 3

The End.