Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-06

fcl-image and fpreadXXX units

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

In the fcl-image directory is a lot of fpreadXXX and fpwriteXXX units. Are those full implementations or are they abstract classes like TFPCustomFont, TFPCustomCanvas, etc?
In other words, do I still need to implement parts of them to be able to use them?

Regards,
- Graeme -

Felipe Monteiro de Carvalho
to Graeme Geldenhuys
Graeme Geldenhuys wrote
In the fcl-image directory is a lot of fpreadXXX and fpwriteXXX units.

Those are low-level image reading and writing (to disk or stream) routines. They implement the TFPCustomImageReader (or Writer) class.

They are used together with TFPCustomImage from fpimage.pp file. AFAIK they are not directly related to TFPCustomCanvas, and you don't need to use it in order to use those units.

By the way, I once wrote a reader unit for the X11 dump format. If I can find it, I'll commit.

Felipe Monteiro de Carvalho
Graeme Geldenhuys
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
They are used together with TFPCustomImage from fpimage.pp file. AFAIK they are not directly related to TFPCustomCanvas, and you don't need to use it in order to use those units.

'fpcanvas' references 'fpimage' in the uses clause. Also TFPCustomCanvas uses TFPCustomImage in methods like

    procedure DoDraw (x,y:integer; Const image:TFPCustomImage);
virtual; abstract;

So I believe they all work hand-in-hand.

PS:
My employer gave me a week to work with fpGUI and see how viable it could be as a widget set for our projects. If it's viable, more time will be scheduled to work of fpGUI. :-)

Graeme.

Felipe Monteiro de Carvalho
to Graeme Geldenhuys
Graeme Geldenhuys wrote
'fpcanvas' references 'fpimage' in the uses clause.

I wanted to make it clear that fpimage doesn't use fpcanvas =) It seams I didn't express it correctly.

Felipe Monteiro de Carvalho
Graeme Geldenhuys
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
On 6/28/07, Graeme Geldenhuys wrote: > 'fpcanvas' references 'fpimage' in the uses clause. I wanted to make it clear that fpimage doesn't use fpcanvas =) It seams I didn't express it correctly.

Ah yes, reading your email again I see what you meant. Thanks.

Graeme.