Any example how to use this function would be handy. :)
And I wonder is it possible to load those from array of bytes likes bitmaps.
There is a JPG loading and displaying demo included in the repository. Look in the 'examples/gui/imgtest_jpeg/' directory.
The jpg unit can read from a stream, so simply create a TMemoryStream instance, populate it will the byte array data, the create the jpg based on the memory stream.
As a side note:
I am worknig on incorporating the FPImage package included with FPC. This will allow fpGUI to read/write just about any image format. We should also have better BMP and JPG support then.
Log in to post a comment.