+ Reply to Thread
Results 1 to 4 of 4

Read picture-pixel color ?

  1. #1
    Registered User
    Join Date
    03-22-2009
    Location
    Antwerp
    MS-Off Ver
    Excel 2002 SP2
    Posts
    45

    Read picture-pixel color ?

    Is there a way to read the color of a specific pixel from a image-file (.jpg)?

    I'd like to use this to trim pictures from there black background.

    Thanks!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Read picture-pixel color ?

    I expect that's pretty complicated, considering that the data is compressed.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Read picture-pixel color ?

    You can do this manually prity easley.

    Open the picture in paint.exe.
    Open Picture.
    use the dropper tool and select the pixel you want.
    go toolbar... Colour,Edit Colour,Define Custom Colour.

    This will give you the RGB colour number's for that pixel.

    Hope this helps in some way.

  4. #4
    Registered User
    Join Date
    03-22-2009
    Location
    Antwerp
    MS-Off Ver
    Excel 2002 SP2
    Posts
    45

    Re: Read picture-pixel color ?

    Thanks, but I want to do it with the VBA to find black borders and split pictures. I want to be able to crop several tickets out of 1 scanned jpg. This way I can scan several tickets all at once, split them, OCR each and get information out of it in a excel-sheet, like shop, date and total amount....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1