[fpc-pascal]The Forms library and images

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Mon Aug 20 23:22:25 CEST 2001

On Sun, 19 Aug 2001 barry at beenthere-donethat.org.uk wrote:

> I am trying to write an image indexing/filing application using Free
> Pascal v1.0.4-1 together with Postgresql and the Forms library v0.89.
> I have managed to blunder my way as far as being able to store images
> in the Postgres database and I would now like to try retieving stored
> images and displaying them.
> I am using the Forms library because it has FDesign and will produce
> Pascal code which Glade/GTK won't do. I don't understand C!
> I have looked through the Forms documentation and it does have a
> section on images but it mentions an FL_IMAGE type which the Free
> Pascal Forms library seems to omit.

? Normally, you should use fl_add_bitmap() to add a bitmap widget,
and set the image using fl_set_bitmap_data() or fl_set_bitmap_file()

however, all bitmaps must be in xpm format, so you'll need some kind
of conversion routines. Free Pascal has support for jpeg; I don't think
there is support for anything else.


More information about the fpc-pascal mailing list