#1 ReadImage_JPG

closed
nobody
None
5
2010-09-29
2010-09-24
Anonymous
No

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.

Discussion

  • Graeme Geldenhuys

    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.

     
  • Graeme Geldenhuys

    • status: open --> closed
     

Log in to post a comment.