Drawing a rectangle around an image

Discussion in 'Java' started by Elliot, Nov 14, 2007.

  1. Elliot

    Elliot Guest

    Hi All

    I've succeeded in printing a rescaled Image, however when I use
    drawRectangle() to print a rectangle around the image the bottom third
    of the image is blacked out. What is the correct way to do this?

    Thanks
    Elliot
     
    Elliot, Nov 14, 2007
    #1
    1. Advertising

  2. Elliot wrote:
    > Hi All
    >
    > I've succeeded in printing a rescaled Image, however when I use
    > drawRectangle() to print a rectangle around the image the bottom third
    > of the image is blacked out. What is the correct way to do this?
    >
    > Thanks
    > Elliot
    >


    The problem is in your code. See SSCCE

    http://physci.org/codes/sscce.html

    --

    Knute Johnson
    email s/nospam/knute/
     
    Knute Johnson, Nov 14, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    640
    Kevin Spencer
    Jan 9, 2006
  2. Ramon
    Replies:
    2
    Views:
    654
    Andrei Kouznetsov
    Dec 18, 2004
  3. jakester
    Replies:
    3
    Views:
    1,190
    Daniel Pitts
    Apr 5, 2007
  4. defn noob
    Replies:
    1
    Views:
    397
    Mark Space
    Jun 28, 2008
  5. Armin Roehrl
    Replies:
    0
    Views:
    106
    Armin Roehrl
    Feb 9, 2004
Loading...

Share This Page