LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 09-03-2003, 02:14 AM   #1
Kiti
LQ Newbie
 
Registered: Sep 2003
Location: Snow, Earth
Posts: 2

Rep: Reputation: 0
Arrow 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?
 
Old 09-03-2003, 06:23 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
what sort of image files? jpegs, tiffs, ...? have a look into SDL_Image/imlib/imlib2 they can load most formats i can think of.
 
Old 09-03-2003, 04:28 PM   #3
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Take a look at the QT libs. They are usually installed by default in most linux distros, and can be used without a gui.
 
Old 09-08-2003, 03:00 AM   #4
Kiti
LQ Newbie
 
Registered: Sep 2003
Location: Snow, Earth
Posts: 2

Original Poster
Rep: Reputation: 0
Hi guys,

How do I learn how to use the tools you suggested? Is there a website you can direct me to?

--
Kit
 
Old 09-08-2003, 04:02 AM   #5
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
QT is developed by TrollTech and they have all the documentation on their website. the documentation should be with any distro that includes qt.
 
Old 09-08-2003, 05:25 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM
Redhat images aepic Linux - Software 2 02-27-2005 12:23 PM
Thunderbird--No Images mooreted Linux - Software 0 08-20-2004 08:51 AM
No images JesseJames LQ Suggestions & Feedback 3 05-20-2003 02:47 PM
embedded images? Brain Drop LQ Suggestions & Feedback 1 02-13-2003 11:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration