ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
just a small question regarding the analysation of pictures.
What possibilities do I have using the programming language C to get information of a given picture (.png, bmp, jpeg ...). Information about its size, colors and so on ?
Are there any libraries (and of course there are) to use to quarantee a precise analysation ?
And how does such an examination looks like ? I mean, what do i need to provide the programm with, if there were no libs available ? I need just a few facts ... a few links to documentations would be very kind.
Well.... As for getting the picture type and size, I suggest using SDL's image loading routines, or Try out DevIL. I must say that I don't understand the rest of your post. However, if you would like to do picture analysation, like say, finding squares and circles in a picture, though I have never attempted anything like this, I suggest you use Object Oriented Programming, so that you can make your life easier. Sorry if I didn't help, but I don't really understand your post...
Well they doing it by fetching the right byte(s), either out of a file or memory, and reading the right info out of them, depending on the file type of course.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.