Re: RE : RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for usinganactivex

2011-05-30 Thread Roberto Padovani
Thanks, I'll try installing a more recent fpc and lazarus... 2011/5/30 Ludo Brands : > I created a small automation object with following IDL (part of it): > >   interface ItestAX: IDispatch >  { >    [ >    propget, >    id(0x0001) >    ] >    HRESULT _stdcall Devices([out, retval] IDevices

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Mattias Gaertner
On Mon, 30 May 2011 23:24:30 +0200 (CEST) Michael Van Canneyt wrote: > > > On Mon, 30 May 2011, Felipe Monteiro de Carvalho wrote: > > > On Mon, May 30, 2011 at 10:16 PM, Marco van de Voort > > wrote: > > http://bugs.freepascal.org/view.php?id=17621 > > > > > > Indeed, I was remember

Re: [fpc-pascal] Missini graph unit

2011-05-30 Thread Nikolay Nikolov
On 05/30/2011 12:25 PM, Elio Fabri wrote: I tried ptcgraph by a mere change of names, and it works, more or less. However, the graph unit still appears in the doc, whereas I cant't find no doc for pctgraph. Some help? It's a new unit (first included with fpc 2.4.4) and therefore not yet mentio

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Michael Van Canneyt
On Mon, 30 May 2011, Felipe Monteiro de Carvalho wrote: On Mon, May 30, 2011 at 10:16 PM, Marco van de Voort wrote: http://bugs.freepascal.org/view.php?id=17621 Indeed, I was remembering that too =) And also, I have a program which loads a huge image (20MB) using TPortableNetworkGra

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Ben Smith
On Mon, May 30, 2011 at 10:22 PM, Felipe Monteiro de Carvalho wrote: > So I have to suggest: Is there a convincing reason for having Pallete set to > true by default? What do you think about the trivial solution of setting it > off by default? It seems I have opened a hornets nest. :) But from th

[fpc-pascal] English lazarus book available.

2011-05-30 Thread Michael Van Canneyt
Hello, For the interested: I got news from the editor (chairman of the Dutch Pascal User Group) that the Lazarus book "Lazarus Complete Guide" is now available for sale. It can be purchased on-line from: http://www.blaisepascal.eu/index.php?actie=./subscribers/subscription_mainpageUKPaypalPa

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Felipe Monteiro de Carvalho
On Mon, May 30, 2011 at 10:16 PM, Marco van de Voort wrote: > > http://bugs.freepascal.org/view.php?id=17621 > Indeed, I was remembering that too =) And also, I have a program which loads a huge image (20MB) using TPortableNetworkGraphics and it takes minutes to load the image. I have simply supp

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > for reading it surely not appropriate regardless of using palette or not). > > I guess that some optimization may be reasonable because such pictures > > could be loaded and displayed (including conversion from true colour to > > 256 colours p

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Jonas Maebe
On 30 May 2011, at 16:59, michael.vancann...@wisa.be wrote: > It depends on the colors used. The default palette algorithm simply allocates > a slot per found color in the jpg and returns the index of the > slow. For a picture, this will create a huge palette, in which the search for > a color

RE : RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for usinganactivex

2011-05-30 Thread Ludo Brands
I created a small automation object with following IDL (part of it): interface ItestAX: IDispatch { [ propget, id(0x0001) ] HRESULT _stdcall Devices([out, retval] IDevices ** Value ); }; interface IIDevices: IDispatch { [ propget, id(0x)

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: Try the following code: Img:=TFPMemoryImage.Create(0,0); Img.UsePalette:=False; Img.loadFromFile(FileList[i]); That should work much faster. The reason is probably that the default image created by the reader uses a palette, which is of course dog slow when re

RE : RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for usinganactivex

2011-05-30 Thread Ludo Brands
> With the round bracketitem := items.item(1); > it crasches saying "Cannot find member" Difficult to debug without having the dll. If item := items.item[1]; raises a "wrong number of parameters then the items.item member is found. I don't understand why items.item(1) raises a "Cannot f

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Tomas Hajny
On Mon, May 30, 2011 16:59, michael.vancann...@wisa.be wrote: > On Mon, 30 May 2011, Tomas Hajny wrote: >> On Mon, May 30, 2011 16:16, michael.vancann...@wisa.be wrote: >>> >>> Try the following code: >>> >>> Img:=TFPMemoryImage.Create(0,0); >>> Img.UsePalette:=False; >>> Img.loadFromFile(FileList[

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Mattias Gaertner
    Tomas Hajny hat am 30. Mai 2011 um 16:50 geschrieben: > On Mon, May 30, 2011 16:16, michael.vancann...@wisa.be wrote: > > > > Try the following code: > > > > Img:=TFPMemoryImage.Create(0,0); > > Img.UsePalette:=False; > > Img.loadFromFile(FileList[i]); > > > > That should work much

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Ben Smith
> > Interesting. What is supposed to be a "large image"? I ask because the > original post mentioned 35 kB and 65 kB (and indirectly also dimensions > around 600x400 if I understand the program output correctly) which I I suppose he was referring to the "color palette", and not the physical image

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread michael . vancanneyt
On Mon, 30 May 2011, Tomas Hajny wrote: On Mon, May 30, 2011 16:16, michael.vancann...@wisa.be wrote: Try the following code: Img:=TFPMemoryImage.Create(0,0); Img.UsePalette:=False; Img.loadFromFile(FileList[i]); That should work much faster. The reason is probably that the default image c

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Tomas Hajny
On Mon, May 30, 2011 16:16, michael.vancann...@wisa.be wrote: > > Try the following code: > > Img:=TFPMemoryImage.Create(0,0); > Img.UsePalette:=False; > Img.loadFromFile(FileList[i]); > > That should work much faster. The reason is probably that the default > image > created by the reader uses a p

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Ben Smith
On Mon, May 30, 2011 at 4:16 PM, Michael wrote: > snip > That should work much faster. The reason is probably that the default image Ah, thanks Michael that did the trick. I knew I had to be doing something wrong. --   Ben. ___

Re: RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using anactivex

2011-05-30 Thread Roberto Padovani
With the round bracketitem := items.item(1); it crasches saying "Cannot find member" I am declaring only variants as you suggestedmaybe for collections I have to declare explicitely some interfaces? I tried without success, but not knowing COM at all, I might have written something wro

Re: [fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread michael . vancanneyt
Try the following code: Img:=TFPMemoryImage.Create(0,0); Img.UsePalette:=False; Img.loadFromFile(FileList[i]); That should work much faster. The reason is probably that the default image created by the reader uses a palette, which is of course dog slow when reading large images. Michael. On

[fpc-pascal] why is FPImage dog slow reading jpeg's?

2011-05-30 Thread Ben
Hi, I wrote this console utility app in 5 minutes. All it is supposed to do, is iterate over *.jpg images (65 at the moment) in a folder (no recursive searches), and generate a snipped of HTML that I need to paste into my wives website. I first thought my utility app is in some recursive loop or

[fpc-pascal] Why is FPImage dog slow in reading jpeg's?

2011-05-30 Thread Ben Smith
Hi, I wrote this console utility app in 5 minutes. All it is supposed to do, is iterate over *.jpg images (65 at the moment) in a folder (no recursive searches), and generate a snipped of HTML that I need to paste into my wives website. I first thought my utility app is in some recursive loop or

RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using anactivex

2011-05-30 Thread Ludo Brands
Use Item(i). Item(long Index, [out, retval] ITransducer* *pVal); means method with 1 input Index and Output Itransducer^. Ludo > -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org > [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part > de Roberto Padovani > Env

Re: RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using an activex

2011-05-30 Thread Roberto Padovani
Hi Ludo, I really cannot get the items to work. I simplyfied the source code to the minimum in order to test the items stuff. var obj, item, items : variant; obj := CreateOleObject('WRGactiveX.Device'); // OK items := obj.Transducers; // OK writeln('Count

Re: [fpc-pascal] Missini graph unit

2011-05-30 Thread Elio Fabri
I tried ptcgraph by a mere change of names, and it works, more or less. However, the graph unit still appears in the doc, whereas I cant't find no doc for pctgraph. Some help? -- -- Elio Fabri c/o Dip. di Fisica - Univ. di Pisa -- _