Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-03

Working with pictures in FPC - how?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Hantsch

Hello!

I would like to write a program which works with pictures.

For that, I will need two procedures for reading and writing a picture in/out to/from memory and hereby decoding/encoding it into a usable format which can be handled easily from FPC. I can imagine four lists of byte for CMYK (where every byte represents an 8-bit value of one particular point, or three lists of byte for RGB.
Because I am not interesting in re-inventing the wheel, I would like to use existing libraries for reading/writing the pictures, i.e. the libjpeg.so. I am sure that these libraries will do more or less exactly what I need in my case, because I need only very low-level functions. But I will need some kind of wrapper for them to make usage easier.

When somebody has worked on that and could leave me some code to get better understanding, I will be very happy. -- Thanks in advance!

mfg

Ing. Rainer Hantsch

.---------------------------------------------------------------------. | \\|// Ing. Rainer HANTSCH - Hardware + Software | | (o o) Forget Windoze! -- We focus on L-I-N-U-X... | |--oOOo-(_)-oOOo------------------------------------------------------| | Ing. Rainer HANTSCH | mail: | | Khunngasse 21/20 | www: http://www.hantsch.co.at | | A-1030 Vienna | tel: +43-1-79885380 fax: +43-1-798853818 | | ** A u s t r i a ** | handy: +43-664-9194382 UID-Nr: ATU 11134002 | '---------------------------------------------------------------------'