473,395 Members | 2,006 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,395 software developers and data experts.

Let User Drag to Re-Size Image

Hi there,
I was wondering if there is a way to allow the user to resize an image by
clicking and drawing on of the four corners of the image..
thanks
--
Ad****@hotmail.com
Nov 19 '05 #1
6 1564
Quick answer: Sort of.

Background: An image in an HTML document is actually a reference to the URL
where the image can be downloaded FROM. The image itself is not IN the HTML
document. So, while you can use client-side JavaScript to change the image
tag attributes (height and width) it is not really resizing the image. It is
resizing the display of the image in the HTML document. To actually resize
the image, you would have to do one of the following:

1. Make a new Request for the image to an ASPX page that can resize the
actual image on the server and return the resized image to the client.
2. Use a client-side ActiveX Control, Java applet, etc., to literally resize
the image on the client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
Hi there,
I was wondering if there is a way to allow the user to resize an image by
clicking and drawing on of the four corners of the image..
thanks
--
Ad****@hotmail.com

Nov 19 '05 #2
I'm sure there is no way to do it using asp.net technology since its server
side..and what you need is client side functionality

"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
Hi there,
I was wondering if there is a way to allow the user to resize an image by
clicking and drawing on of the four corners of the image..
thanks
--
Ad****@hotmail.com

Nov 19 '05 #3
asp.net lets you do all the html and javascript code for the client side
scripting... so there has be to a way..

if i just resize the image of the actual picture, would that still work
easilty enough, or would it end up too pixely??

"Tampa.NET Koder" wrote:
I'm sure there is no way to do it using asp.net technology since its server
side..and what you need is client side functionality

"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
Hi there,
I was wondering if there is a way to allow the user to resize an image by
clicking and drawing on of the four corners of the image..
thanks
--
Ad****@hotmail.com


Nov 19 '05 #4
I was mainly referring to the drag and drop stuff when I said it can't do
the drag and drop stuff. I'm sure you can do something like that with some
DHTML.
To do this, you might have to pass the size of the image you selected to
the server using asp.net. and probably mess with some GDI+ to do some
dynamic image processing. Then send this back out to the browser. Seems
like nice little project..good luck. BTW. Kevin's idea would probably work
out too.
"ACaunter" <Ad****@hotmail.com> wrote in message
news:7F**********************************@microsof t.com...
asp.net lets you do all the html and javascript code for the client side
scripting... so there has be to a way..

if i just resize the image of the actual picture, would that still work
easilty enough, or would it end up too pixely??

"Tampa.NET Koder" wrote:
I'm sure there is no way to do it using asp.net technology since its
server
side..and what you need is client side functionality

"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
> Hi there,
> I was wondering if there is a way to allow the user to resize an image
> by
> clicking and drawing on of the four corners of the image..
> thanks
> --
> Ad****@hotmail.com


Nov 19 '05 #5
pretty simple in javascript. script can change the pixel size of the image,
and the browser will resize it. you will want the original image to have
enough pixels to scale nicely (use html to scale down originally)

-- bruce (sqlwork.com)
"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
| Hi there,
| I was wondering if there is a way to allow the user to resize an image by
| clicking and drawing on of the four corners of the image..
| thanks
| --
| Ad****@hotmail.com
Nov 19 '05 #6
any code samples to do this would be truely helpful!!

thanks

"bruce barker" wrote:
pretty simple in javascript. script can change the pixel size of the image,
and the browser will resize it. you will want the original image to have
enough pixels to scale nicely (use html to scale down originally)

-- bruce (sqlwork.com)
"ACaunter" <Ad****@hotmail.com> wrote in message
news:58**********************************@microsof t.com...
| Hi there,
| I was wondering if there is a way to allow the user to resize an image by
| clicking and drawing on of the four corners of the image..
| thanks
| --
| Ad****@hotmail.com

Nov 19 '05 #7

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

Similar topics

1
by: Bennett Haselton | last post by:
I create a new Web Form and drag a new Button onto it from the Web Forms toolbox tab, and then I drag a new instance of the UserPost user control that I created, by dragging and dropping the...
2
by: Loui Mercieca | last post by:
Can anybody point me out on how to be able to drag and drop email messages to a user web control?
6
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form...
1
by: randy1200 | last post by:
In Visual Studio 2003, I could create a new user control such as panel1. The name panel1 would appear in the toolbox under "My User Controls." I could drag this panel1 from the toolbox onto...
0
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file. called A One project that build a user control dll called B One project that build a class...
1
by: Tony Johansson | last post by:
Hello!! I use VS 2003 and C#. I have sent several mail even tried with crossgroup because I want to find out if my problem is a bug in .NET or if .NET doesn't support what I do. It's only one...
1
by: Tony Johansson | last post by:
Hello!! I use VS 2003 and C#. I have sent several mail even tried with crossgroup because I want to find out if my problem is a bug in .NET or if .NET doesn't support what I do. It's only one...
0
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
2
by: Robert Zahm | last post by:
I have created a C# user control which display certain filesystem information, and allows the user to drag an drop files into and out of the control. I then placed this user form in IE using an...
0
by: raghunadhs | last post by:
Hi all! i am developing an application in v.b 6.0. it consists of some user controls (developed by using Activex controls...)... I am able to drag and drop the user contols on the screen and these...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.