Sign in Join

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

Mailing lists / fpc-pascal / 2003-05

How to work with images?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Rainer Hantsch

Hello!

What I want to do all the time, but I never found out HOW to do that, is working with pictures on a LINUX server.

Note: I do not want to display them (make some kind of new image viewer)! What I want to do is processing them in a textmode or daemon application and find out differences between two images, and some similar stuff.

This requires to read in pictures and decode/uncompress them hereby. Then the picture should be in memory in a usable data format which I can handle easily with FPC. Finally, if required, I want to store an image back into a file.

For most of that, I guess, there will be ready made and existing libraries like 'libjpeg', so (I think) there will be no need to re-invent all this encoding/decoding stuff.
When I visited a friend (he plays around with Windows-FPC), I saw his application, written in FPC and doing most of that - but it uses Windows-DLL's, so this is of no help to me, but it shows me that I am not so wrong.

Is somebody out here who can leave me a sample program which shows me how to use a shared library for reading/writing i.e. a JPEG file into/from memory? 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 | '---------------------------------------------------------------------'
Peter Vreman
to Rainer Hantsch
Show quoted text 5 lines
Is somebody out here who can leave me a sample program which shows me how to use a shared library for reading/writing i.e. a JPEG file into/from memory? Thanks in advance!

Try gdkpixbuf or Lazarus/LCL

Rainer Hantsch
to Peter Vreman

On Tue, 6 May 2003, Peter Vreman wrote:

| > Is somebody out here who can leave me a sample program which shows me how | > to
| > use a shared library for reading/writing i.e. a JPEG file into/from | > memory?
| > Thanks in advance!
|
| Try gdkpixbuf or Lazarus/LCL

Good idea, thanks! -- Are these in delphi-style or in procedural/OOP style? I use no delphi style at all...

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 | '---------------------------------------------------------------------'
Peter Vreman
to Rainer Hantsch
Show quoted text 14 lines
On Tue, 6 May 2003, Peter Vreman wrote: | > Is somebody out here who can leave me a sample program which shows me how | > to | > use a shared library for reading/writing i.e. a JPEG file into/from | > memory? | > Thanks in advance! | | Try gdkpixbuf or Lazarus/LCL Good idea, thanks! -- Are these in delphi-style or in procedural/OOP style? I use no delphi style at all...

Lazarus/LCL is delphi VCL like. gdkpixbuf is procedure (GDK/GTK style)