Results 1 to 5 of 5
  1. #1
    santafan is offline Member
    Join Date
    Jun 2011
    Posts
    21
    Rep Power
    0

    Wink [HELP] How to locate a pixel in an image by color?

    Well title basicly says it all, but what class would I start with? Robot Class? PixelGrabber Class? If you could post a small sample code, that would be even more helpful. :)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default

    BufferedImage#getRGB(...)

    db

  3. #3
    santafan is offline Member
    Join Date
    Jun 2011
    Posts
    21
    Rep Power
    0

    Default

    That works when you have the X and Y coords, however I don't. I need to use the RBG value to find the X and Y coords.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default

    Scan the pixels in a nested loop.

    db

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default Re: [HELP] How to locate a pixel in an image by color?

    And don't double post the same question. Your new thread on the same topic has been locked.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Scanning Image Pixel by Pixel
    By the_transltr in forum Advanced Java
    Replies: 5
    Last Post: 08-28-2012, 04:01 PM
  2. Identify pixel in the image.
    By Maiquelnet in forum Java 2D
    Replies: 2
    Last Post: 11-12-2009, 07:55 PM
  3. Replies: 14
    Last Post: 04-10-2009, 08:46 AM
  4. how to get rgb value each pixel of an image file
    By tOpach in forum New To Java
    Replies: 1
    Last Post: 03-28-2009, 04:38 PM
  5. Replies: 1
    Last Post: 07-17-2007, 04:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •