[fpc-pascal]Working with pictures in FPC - how?

Rainer Hantsch rainer at hantsch.co.at
Mon Mar 24 07:39:26 CET 2003


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!


  Ing. Rainer Hantsch

|      \\|//              Ing. Rainer HANTSCH  -  Hardware + Software |
|      (o o)              Forget Windoze! -- We focus on L-I-N-U-X... |
| Ing. Rainer HANTSCH |  mail: office at hantsch.co.at                   |
| 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 |

More information about the fpc-pascal mailing list