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 2 of 2

Thread: Filling a Shape with lines

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Filling a Shape with lines

    Is there anyway to fill a shape (Rectangle2D, Ellipse, etc.) with parallel lines (or other line-based texture) which shows what lies beneath the shape (a picture, other shape, etc.)?

    Thanks


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Filling a Shape with lines

    Not sure what you are doing. If you draw a shape and then draw something over the top of some of that shape, the part that was not drawn over will be visible.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Filling a 2D array with other arrays.
    By mwebb in forum Object Oriented Programming
    Replies: 4
    Last Post: March 1st, 2012, 05:11 PM
  2. Filling the frame
    By Metadeth in forum AWT / Java Swing
    Replies: 2
    Last Post: July 11th, 2011, 03:28 PM
  3. Filling Arrays
    By av8 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: June 25th, 2011, 11:41 PM
  4. filling an array with strings
    By exose in forum Collections and Generics
    Replies: 3
    Last Post: February 18th, 2011, 09:44 AM
  5. Filling an Array?
    By Bascotie in forum Collections and Generics
    Replies: 5
    Last Post: October 14th, 2009, 06:27 PM