Results 1 to 2 of 2
  1. #1
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Slope of an images top left corner as P1, then the top left corner + the width as P2

    Hi,

    I have a bufferedImage thats rotating and i have it attached to an affinetransform. when I rotate this image, im able to keep the top left corner of the image point but when it rotates i lose point2, which is "myaffinetransform(xlocation, ylocation) + myImage.getwidth();

    so what im saying is i have two points. one is at the top left corner of my image, the other is at the same location, plus the width of the image. point2 does not rotate with the image i know it has to do with affinetransform it acctually makes sense but i'm wondering if theirs another way to keep track of my point2 which i have described above.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Slope of an images top left corner as P1, then the top left corner + the width as

    Could you post that in the form of a diagram? I've read it about 5 times and still haven't a clue what point you want the coordinates of.
    the other is at the same location, plus the width of the image. point2 does not rotate with the image
    Points don't rotate. They may revolve or be translated.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Reversing dojo slider to make it slide from right to left rather left to right as giv
    By gurpreet.singh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 05-05-2011, 02:49 PM
  2. Replies: 0
    Last Post: 05-05-2011, 09:26 AM
  3. square moves left and down but not up or left
    By natdizzle in forum AWT / Swing
    Replies: 3
    Last Post: 02-04-2011, 06:20 PM
  4. Replies: 2
    Last Post: 08-08-2010, 09:07 PM
  5. View Corner
    By BogdanNb in forum SWT / JFace
    Replies: 0
    Last Post: 07-25-2008, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •