Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: building a composite image

  1. #1
    Member
    Join Date
    Feb 2012
    Posts
    106
    My Mood
    Yeehaw
    Thanks
    8
    Thanked 11 Times in 11 Posts

    Default building a composite image

    EXAMPLE:
    say I wanted to make a quilt, and I have a png of same sized different color squares

    I am thinking of painting these on to a JPanel of the required size.
    (If I wanted the JPanel/Quilt to be a 10x10 grid, then it would be 10 times as long and 10 times as wide as the colored squares.)

    I need a good starting point to learn how to "paint/draw/etc" an Image onto a JPanel at a specific location on the JPanel, that will permanently attach itself to the JPanel at that spot.

    also is this a good approach to the task? (I probably will not need to save the composite Image/Quilt, but It would be useful to be able to know how)

    Thanks
    Jonathan


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,333
    Thanks
    181
    Thanked 830 Times in 773 Posts
    Blog Entries
    5

    Default Re: building a composite image


  3. #3
    Member
    Join Date
    Feb 2012
    Posts
    106
    My Mood
    Yeehaw
    Thanks
    8
    Thanked 11 Times in 11 Posts

    Default Re: building a composite image

    nopers. Ill get started.

Similar Threads

  1. simple prime or composite numbers
    By angelicatomnob in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 11th, 2013, 12:02 PM
  2. Create image Jpeg from an object of Image class.
    By Ramandeep in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: December 31st, 2011, 10:34 PM
  3. JSF: Dynamically building SelectItems
    By Tsarin in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: December 4th, 2011, 04:58 PM
  4. Replies: 2
    Last Post: February 14th, 2011, 04:36 PM
  5. composite and prime
    By cutee_eyeh in forum Object Oriented Programming
    Replies: 3
    Last Post: October 13th, 2010, 09:01 PM