[fpc-pascal] FP Vector graphics library

Michael Van Canneyt michael at freepascal.org
Wed May 27 16:15:57 CEST 2009



On Wed, 27 May 2009, Felipe Monteiro de Carvalho wrote:

> On Wed, May 27, 2009 at 10:53 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> All correct, and currently we have support in FPC for raster images.
>> My proposal is to add your code to FPC so we also support vector
>> graphics: FCL-image seems like the appropriate place for this.
>
> I see, but are you proposing to add my units to fcl-image as they are
> (which would mean separate classes for raster images and vector
> images) or try to have a multi-concept class? Just trying to
> understand, I would prefer to keep things separate.

Of course, separate classes; I don't think it is very realistic
to have a single concept for both.

What could be added later on is a class that does the drawing of 
the vector graphics on a TFPCustomCanvas, and can then be used
to create a bitmap with the TFPBitmapCanvas descendent or
on a window - since the LCL TCanvas is a descendent of 
TFPCustomCanvas anyway.

Michael.



More information about the fpc-pascal mailing list