Read out pixels from .jpgs

K

Kai Berger

Hi together,

I want to read out every pixel (that means its colour value) from
a jpeg in an array.

Is there a function in c++, that fulfills this task?
(In java there is a certain function called PixelGrabber)

Thx,

Kai
 
A

Allan Bruce

Kai Berger said:
Hi together,

I want to read out every pixel (that means its colour value) from
a jpeg in an array.

Is there a function in c++, that fulfills this task?
(In java there is a certain function called PixelGrabber)

Thx,

Kai

You will need to use a library to read the jpeg format, there is one from
www.ijg.org that you can use. There is nothing in the C++ standard that
deals with jpegs directly.
Allan
 
J

John Carson

Kai Berger said:
Hi together,

I want to read out every pixel (that means its colour value) from
a jpeg in an array.

Is there a function in c++, that fulfills this task?
(In java there is a certain function called PixelGrabber)

Thx,

Kai


Standard C++ knows nothing about graphics. You will need a 3rd party library
which may (or may not) be platform specific. Try asking in either a graphics
newsgroup or a newsgroup for your particular platform.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top