|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: May 2004
Posts: 103
|
Sorting Program
I am trying to write a program that will be able to tell what colors are in a file and sort it to an appropiate folder. For example if I give it a black and white image I would like the program to recognize the file is black and white and put it in to a folder. Or I could give it a color file and it would put it into a different folder.
How could I go about telling what colors are in the file? I tried looking through a file with a hex editor but am having a little trouble figuring out where the format data stops and the contents. ANy help is greatly appreciated, Shaticus |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
What language and what kind of file?
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: May 2004
Posts: 103
|
I will write it in c or c++. As for file type it should be able to handle common image formats like jpeg and quark express files.
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
So you're saying that you want this program to determine the dominant color of a jpeg or quark express file and sort them? I think you're asking a bit much.
You may, however, be able to find something with google. |
|
|
|
|
|
#5 |
|
Member (7 bit)
Join Date: May 2004
Posts: 103
|
OK thanks, I knew it would be difficult to figure out.
If I can get it working I will be sure to post the code. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|