Author Topic: BGRA and thumbnails  (Read 1575 times)


  • Hero Member
  • *****
  • Posts: 2857
BGRA and thumbnails
« on: October 29, 2021, 06:40:58 pm »

As a result of a discussion in another thread I started to search for BGRA and thumnails. The discussion is here:,56896.msg422858.html#msg422858

And - as so often - I detected that there is a simple to use function :

Code: Pascal  [Select][+][-]
  1. function GetStreamThumbnail(AStream: TStream; AWidth,AHeight: integer; ABackColor: TBGRAPixel; ACheckers: boolean; ASuggestedExtensionUTF8: string = ''; ADest: TBGRABitmap= nil): TBGRABitmap; overload;

You can use this function for all important graphic file formats and it return a thumbnail BGRAbitmap. Smart and easy.  And fast.

For the use I made a little demo name PhotoExplorer.

Project and screenshot in the attachment.



TinyPortal © 2005-2018