Solved

points for xabi, image cropping rectangle

Posted on 2000-05-09
8
299 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 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video Tutorial help 2 40
Getting selected value using Jquery 3 22
what should i learn? javascript or typescript? 3 38
How to pass values to HTML-5 attribute dynamically? 24 51
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

726 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