Results 1 to 2 of 2

Thread: Java2D

  1. #1
    Alex j is offline Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    0

    Default Java2D

    Please help me to draw line by copying the pixels from a picture(Bresenham Algorithm)

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default Google is your friend

    OK... I'll bite. Since I don't have a clue as to what a Bresenham Algorithm is, I googled it. The first hit was wikipedia, which gives a very good explanation what the Bresenham Algorithm is. It even has a a couple of C++ examples, which could be easily ported to Java. Then I googled "java Bresenham Algorithm" and the very first hit had plenty of java examples.
    Morale of this story? If nobody else answers, google it.

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

Similar Threads

  1. Ebook for java2D for beginners.
    By hardiks21 in forum Java 2D
    Replies: 2
    Last Post: 02-08-2009, 01:04 PM
  2. n00b help with java2D api
    By michcio in forum Java 2D
    Replies: 7
    Last Post: 10-30-2008, 07:18 PM
  3. Use of Java2D on SWT or Draw2D graphical context
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 06-28-2008, 10:20 PM
  4. Java2D Line Styles
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-23-2008, 12:05 AM
  5. A demonstration of Java2D transformations
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-21-2008, 09:50 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
  •