I think perl with the image magick module can do what you ask...

go to search.cpan.org and search for "image" you'll find a ton of stuff.. 

you can even generate images with them.. its very cool.


rgds

Frank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Damian G
Sent: Friday, August 16, 2002 3:40 PM
To: lista-linux-newbie
Subject: [newbie] read a pixel!



i need a suggestion on programming languages.

this is how it goes.

i need to build a program that can tell me the RGB value
of a given pixel inside of an image file. that is, load
a graphic from file, and reading color values from it
regardless of whether it's showing on the screen or not.

i've tried kylix Open edition, but it fails to do it
( probably buggy libs ) as it loads and displays a
graphic correctly on the form but when i try to
read a pixel from it... the RGB value i get is wrong
( i think it's getting converted to 8-bit palette )

while the same code does run correctly on windoze's Delphi 5,
( so much for cross-plattform programming ) i hate having
to reboot my computer ( or even loading a virtual machine )
just for the sole purpose of barfing fome clumsy lines of
code -besides i'd like the linux binary- , so i've decided that
i need to learn something other than pascal for killing time...


can anyone recommend me a programming language that allows
me to do this pixel-reading stuff and is as simple as possible?
( i will have to learn C sometime, but for the moment i think
is a bit overkill... is there a choice? )


Damian



-- 
Who is General Failure, and why is he reading my disk?



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to