Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,545

    Re: coordinate double -> pixel int

    That clears it up!

    I have no idea what we're supposed to do with that - either one.
  2. Replies
    7
    Views
    1,545

    Re: coordinate double -> pixel int

    I don't get the difficulty. The center of your JFrame is:

    centerX = frame.getWidth() / 2;
    centerY = frame.getHeight() / 2;

    That defines the center of the JFrame which is the origin of a...
  3. Replies
    7
    Views
    1,545

    Re: coordinate double -> pixel int

    Describe your coordinate system in terms of the native coordinate system. From there, it's relatively simple math. For example, if the display area is 400 x 400, and you desire the center of the...
  4. Replies
    7
    Views
    1,545

    Re: coordinate double -> pixel int

    You're talking about Graphics.drawLine(), right? And you have a coordinate system in the JFrame that differs from that provided natively? Then I suggest you provide a translation from your...
Results 1 to 4 of 4