Re: [fpc-pascal] how to use Default to replace this ' FillChar(aRecord, sizeof(aRecord), 0);

2016-12-07 Thread Sven Barth
Am 08.12.2016 05:14 schrieb "Lars" : > > On Mon, December 5, 2016 4:46 am, Dennis Poon wrote: > > > > > > > Lars wrote: > > > >> Do you know about this feature: > >> > >> > >> var SomeRec: TSomeRecord = (); > >> > > This is good for global variable. > > But I wonder whether it

Re: [fpc-pascal] how to use Default to replace this ' FillChar(aRecord, sizeof(aRecord), 0);

2016-12-07 Thread Lars
On Mon, December 5, 2016 4:46 am, Dennis Poon wrote: > > > Lars wrote: > >> Do you know about this feature: >> >> >> var SomeRec: TSomeRecord = (); >> > This is good for global variable. > But I wonder whether it has effect in procedure's local variable since > it requires the compiler to clear

Re: [fpc-pascal] performance when resizing a dynamic array

2016-12-07 Thread David Emerson
Graeme Geldenhuys wrote: Martin Schreiber wrote: That happens with every reallocmem() with FPC memory manager so using a getmem() block instead of a dynamic array has no advantage in this Maybe a good old linked list implementation is the best performer then. Back to the Pascal of the 80's

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Mattias Gaertner
On Wed, 7 Dec 2016 15:34:13 + Graeme Geldenhuys wrote: >[...] > fs := TFileStream.Create('/tmp/multipage_tiff_example.tif', fmOpenRead); > t := TFPReaderTiff.Create; t.OnCreateImage:=@... > t.LoadFromStream(fs, true); Mattias

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Graeme Geldenhuys
On 2016-12-07 11:43, Mattias Gaertner wrote: > TFPReaderTiff and TFPWriterTiff support multiple IFD using multiple > TFPCustomImage. I just tried with FPC 3.1.1 and it fails. The initial loading of the TIFF file works, it correctly tells me there are 10 images (confirmed with the Unix 'identify'

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Graeme Geldenhuys
On 2016-12-07 11:43, Mattias Gaertner wrote: > Do you mean multiple IFD? Yes. > TFPReaderTiff and TFPWriterTiff support multiple IFD using multiple > TFPCustomImage. Perfect, many thanks for the confirmation. Regards, Graeme ___ fpc-pascal

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Mattias Gaertner
On Wed, 7 Dec 2016 09:58:13 + Graeme Geldenhuys wrote: > Hi, > > Does anybody know if FPImage supports multi-page TIFF's? Reading or > Writing. Do you mean multiple IFD? TFPReaderTiff and TFPWriterTiff support multiple IFD using multiple TFPCustomImage.

Re: [fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Žilvinas Ledas
Hi, when I needed to read multi-page tiff files some years ago, I used TLazReaderTiff. I don't remember if multi-page code worked out of the box, but I had to extend tiff reader to handle some more exotic format that came from some imaging software (I think I didn't contribute the changes

[fpc-pascal] FPImage and mult-page TIFF support

2016-12-07 Thread Graeme Geldenhuys
Hi, Does anybody know if FPImage supports multi-page TIFF's? Reading or Writing. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp