Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Fern Sanchez   on Aug 03 In Asp.net Category.

  
Question Answered By: Naomi Lee   on Aug 03

Use your DynamicImages ashx to gerate the images but modify it to take a width
and length.

Fine. So out image is client side.
You then have to generate an image map, this image map will get the x,y co-ords
of the mouse for you.

You pass them back to the server on the click  of your button, which then
modifies the image and sends it back : whether or not you wish to expand that
cropped image back to teh size of your original image is up to you.

You then have a cropped image in your window and not the original.

You could do it your way and crop the image into a new window, that window could
be sized the original image dimensions or to the cropped image dimensions -
depending on whether you wish to explode the cropped image into the original
size.

Ironic ... a quite few years back I did just this but with not with IE windows
and C# server code but with J++ forms and AWT Frames.

Which brings me to the concept of doing it all client side.

I would think that you could.
You could do it all in javascript.
Give the image an id when its downloaded.
Grab and crop that image and open a new window to display the cropped version -
all done client side.
There is plenty of mouse code around that you can use to track the mouse and
thus get the image co-ordinates you require.
The dodgy bit is what you can do with the javascript image object ... whether or
not it will let you manipulate it's dimensions.

However the good bit about the language java ( and something .NET CANNOT do) is
that you can access the java VM directly from client side script, and so can
just about anything could possibly want to do with an image.

If you need any help with image map bit then let me know, I have it all
somewhere (my html book in a box, behind my new kitchen unist tht hasn't been
fitted yet - but I'll dig it out for you!)
I know that it CAN definately be done completely client side && possibly using
java, but I don't really want to spend time in java or in javascript.

The main thing being is that an image map will get the co-ords for you.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Causing timed form Post Or get search suggestion and latest updates.


Tagged: