Solved

points for xabi, image cropping rectangle

Posted on 2000-05-09
8
297 Views
Last Modified: 2012-08-13
0
Comment
Question by:Kim Ryan
8 Comments
 
LVL 8

Accepted Solution

by:
xabi earned 400 total points
ID: 2795664
here I am :)

xabi
0
 
LVL 19

Author Comment

by:Kim Ryan
ID: 2795842
Thanks again, I integrated this into my ImageMagick based program today and it works bueatifully.

Just one small query, when I drag my cropping rectangle around in the IE browser, the right hand scroll bar rescales. Only a minor problem, it doesn't occur on Netscape.
0
 
LVL 8

Expert Comment

by:xabi
ID: 2795847
You can't avoid this. I will try to explain why it occurs:

I draw a transparent layer over the image to catch the click (the layer has the same size as the image). When you drag the mouse the layer is moved down the pointer (you can't notice it cause it's a transparent layer) so when you are near the borders of the screen this layer is out the screen and IE will show you the scroll bars :). I will try to solve this problem for you, ok?

xabi
0
 
LVL 19

Author Comment

by:Kim Ryan
ID: 2798257
Thanks, it's not a big problem, I can live with it. I also noticed that when you first click on the image it goes black for an instant, which is slightly annoying. Can this be changed? I am happy to offer more points if needed.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Expert Comment

by:xabi
ID: 2799103
Here goes the answer for the new question:

Change the function dragStart into this one:

function dragStart(x,y) {
  iIniX = x-iX
  iIniY = y-iY
  layertop.clipTo(0,0,0,0)
  layerdown.clipTo(0,0,0,0)
  layerleft.clipTo (0,0,0,0)
  layerright.clipTo(0,0,0,0)
  layertop.show()
  layerdown.show()
  layerleft.show()
  layerright.show()
}

xabi
0
 
LVL 8

Expert Comment

by:xabi
ID: 7433851
Are you still alive?

Xabi

Please send me an E-mail to mail@xa.bi
0
 

Expert Comment

by:Tommienbp
ID: 7873442
I have the same problem, but I cannot find the complete solution here. Is there anyone who has it?

Thanks Tom
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 13480215
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now