?
Solved

points for xabi, image cropping rectangle

Posted on 2000-05-09
8
Medium Priority
?
305 Views
Last Modified: 2012-08-13
0
Comment
Question by:Kim Ryan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Accepted Solution

by:
xabi earned 1600 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

649 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