473,809 Members | 2,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Zoom Control

Hi there,
I have a bunch of images on my ASP.Net website, and i wanted to have a zoom
feature as well..., I can do it with panels and just keep doing the
image.width = image.width * 2... but i wanted to do it another way

I wanted to have that thing where it is just a small square (maybe an inch
by an inch) and that square can be moved with the mouse... then, only the
part inside the square would be zoomed...
is this possible??

Thanks a lot!!

--
Ad****@hotmail. com
Nov 19 '05 #1
2 2103
Hi ACaunter,

using the style property of the image you can have Zoom the image without a
postback

check this link

http://msdn.microsoft.com/library/de...rties/zoom.asp
*************** *************
Hope This helps,
Shaun ,M.C.P

http://blogs.wwwcoder.com/shaunakp
*************** *************
"ACaunter" wrote:
Hi there,
I have a bunch of images on my ASP.Net website, and i wanted to have a zoom
feature as well..., I can do it with panels and just keep doing the
image.width = image.width * 2... but i wanted to do it another way

I wanted to have that thing where it is just a small square (maybe an inch
by an inch) and that square can be moved with the mouse... then, only the
part inside the square would be zoomed...
is this possible??

Thanks a lot!!

--
Ad****@hotmail. com

Nov 19 '05 #2
Hi Shaun,
thanks for the reply, the link you provided is great.. I almost have the
zoom thing perfect with the <p> tag... The way i'm hoping to get it is to
have that box that can be dragged around, and only the part within the box
gets zoomed.. I wrote the following:

<p class="drag" onmouseover="th is.style.zoom=' 200%'"
onmouseout="thi s.style.zoom='n ormal'"></p>
<img id = "Image1" src="img.jpg">
... this only makes the box itself double in size.. if i change the
"this.style.zoo m" to "image1.style.z oom", the whole image will double in
size... it's right there , but not quite... do you know how i can keep the
box always the same size, and just have the background i guess of the box, so
just whatever is inside or behind the box to be zoomed... Please provide any
code if you can

thanks alot!
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
4410
by: Deano | last post by:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanksMartin
1
7220
by: DMCD | last post by:
I want to allow my program users to: 1. Open a jpg inside of a panel control (PictureBox control inside Panel control ... PictureBox picture set to user's jpg file selection); 2. Zoom in and out on the jpg (change the picturebox size mode to zoom and scale the photo); 3. Move the jpg up, down, left right within a container control (using the MouseDown and MouseMove events, I change the location of the jpg); 4. Save the visible...
3
4753
by: Keith G Hicks | last post by:
In MS Access image controls there's a property setting for "Size Mode" --> Clip, Zoom or Stretch. I don't see any similar property in an asp image control. When I have an image on a page, it seems to Stretch no matter what. If an image is displayed that has different proportions than the image control itself, the image is distorted. I need a "Zoom" setting (not to zoom in and out). How can this be done? Thanks, Keith
4
24864
by: Yoshitha | last post by:
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...
4
2198
by: prami | last post by:
Hello I'm sure I do something wrong, but I don't know what ... In Form 1 I painted the RTF2 control and bound it to a memo field. Entering and changing data therein works fine. Now, based on some space limitations, I want to reduce the control's size and add a zoom button nearby, which opens Form2 with an unbound RTF2 control. What I want is simple. - Having still the possibility to see, enter and update text in RFT2 on Form1 -...
0
2038
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the functionality to zoom in/out in this RichTextBox, sending the EM_SETZOOM message to it. The problem is that if I just send the message, the .SelAlignment = rtfRight goes out of the control. To solve that, I tried to set the .width property...
2
14713
by: Mike | last post by:
Is there any way you can zoom a form and all its contents? In VBA you simply set the form zoom property(Form1.zoom). thanks
0
8311
by: murry19830507 | last post by:
i want creat an web application(c#.net),which contains an image and one radiobutton list with 3 radiobuttons(zoom in ,zoom out ,zoom window) when user checked on zoom in imge has to be zoom inthe similar manner when zoom window is checked,it allow to create a rectangle window by using mouse pressed and released.and particular area of the map/image must be zoomed or my source code writen bellow. using System; using System.Data;
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10635
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7653
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.