473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2082
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="this.style.zoom='200%'"
onmouseout="this.style.zoom='normal'"></p>
<img id = "Image1" src="img.jpg">
... this only makes the box itself double in size.. if i change the
"this.style.zoom" to "image1.style.zoom", 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
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
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...
3
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...
4
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...
4
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...
0
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...
2
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.