Programming This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-03-2003, 02:14 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: Snow, Earth
Posts: 2
Rep:
|
images
Hi everyone,
I'm having issues with image files in C++. I'm basically trying to read in image files and change pixel values. The problems are:
1) How do I do this in C++ in the first place?
2) Should I be expecting integer values from 0 to 255? Or some other type, and then what value ranges?
3) Is there a C++ API like there is for Java?
Help?
|
|
|
09-03-2003, 06:23 AM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
what sort of image files? jpegs, tiffs, ...? have a look into SDL_Image/imlib/imlib2 they can load most formats i can think of.
|
|
|
09-03-2003, 04:28 PM
|
#3
|
Member
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419
Rep:
|
Take a look at the QT libs. They are usually installed by default in most linux distros, and can be used without a gui.
|
|
|
09-08-2003, 03:00 AM
|
#4
|
LQ Newbie
Registered: Sep 2003
Location: Snow, Earth
Posts: 2
Original Poster
Rep:
|
Hi guys,
How do I learn how to use the tools you suggested? Is there a website you can direct me to?
--
Kit
|
|
|
09-08-2003, 04:02 AM
|
#5
|
Member
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419
Rep:
|
QT is developed by TrollTech and they have all the documentation on their website. the documentation should be with any distro that includes qt.
|
|
|
09-08-2003, 05:25 AM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
the sdl_image docs are on their website somewhere www.libsdl.org both imlib and imlib2 come with some great documentation in their source .tar.bz2, depending on your distro you might have it installed in /usr/share/doc/imlib-version/ if not grab their latest .tar.bz2 and get it from there.
imlib2 tar.bz2
imlib tar.bz2
qt is very powerful and very good gui library but i would say its far too heavy for simple image loading/manipulation. i would agree that qt is present on most desktop systems but i doubt its present on web servers or small embedded systems, so if your program was gonna be used to generate live images for apache or something similar then i wouldnt reccomend qt. also i believe imlib{,2} offer more functionality than qt's image stuff but i may be wrong there.
|
|
|
All times are GMT -5. The time now is 02:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|