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

Thread: How to render colour according to location and signal strength.

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to render colour according to location and signal strength.

    Hi
    Sorry if this is the wrong section.
    Ive been trying to make a program that can take in a series of variables (X,Y,Z) and make an image out of them I.e get X and Y variables and at that location place a dot of grey that's lighter or darker depending on the value of variable Z. I am a bit of a noob at java and have no idea of where to start and how to do this.

    Can anyone help me?


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: How to render colour according to location and signal strength.

    Consider creating a BufferedImage and setting the pixels on the image and displaying them in a JLabel's ImageIcon or a JPanel's paintComponent method.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to render colour according to location and signal strength.

    Umm, I think I didn't quite stress how much of a noob I am, can anyone tell me where I can find out about those? I'm just after a way to make my microscope render something other than a series of line graphs.

  4. #4
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: How to render colour according to location and signal strength.

    The Java API will have information on BufferedImages. This site and many other will have many examples of working with them.

Similar Threads

  1. JDialog Failing to Render...
    By snowguy13 in forum AWT / Java Swing
    Replies: 2
    Last Post: April 7th, 2012, 12:55 PM
  2. Password Strength Meter
    By Dr.Kernel in forum What's Wrong With My Code?
    Replies: 7
    Last Post: November 4th, 2011, 10:17 AM
  3. Render data on next page
    By Rajat in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 25th, 2011, 10:46 AM
  4. Password Strength Checker
    By uthuth in forum Object Oriented Programming
    Replies: 1
    Last Post: February 6th, 2010, 04:09 PM