On Thu, 8 Dec 2016 12:12:27 +0000 Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote:
> On 2016-12-07 17:47, Mattias Gaertner wrote: > >> > t := TFPReaderTiff.Create; > > t.OnCreateImage:=@... > > > > Thanks that solved it. > > But why can't TFPReaderTiff do that for us, or at least have a default > implementation (override'able by developers if really needed). The default implementation is for the normal use - reading only the biggest image: http://wiki.freepascal.org/fcl-image#Reading_an_image_file How should the default look like for lists of images? A variable with a default image class, and set as default to TFPMemoryImage? That would be a 64bit per pixel image, wasting a lot of memory. Or using CreateFPCompactImg, which creates a more compact image, but maybe the image will only support grayscale and/or no alpha. Or add some helper procedures, for some common cases. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal