[Lazarus] fpimage use of Lazarus

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 16 23:29:40 CET 2008


On Sat, 16 Feb 2008 21:59:06 +0100
Marco van de Voort <marcov at stack.nl> wrote:

> On Sat, Feb 16, 2008 at 09:12:16PM +0100, Mattias Gaertner wrote:
> > 
> > > On Sat, Feb 16, 2008 at 06:54:58PM +0100, Mattias Gaertner wrote:
> > > > > certain many used cases of a graph format like this, and
> > > > > leave the oddball options to the existing reader.  It also
> > > > > allows image formats to not allocate the worst case amount of
> > > > > mem (maxbpp*rowsize*height).
> > > > 
> > > > You only mention bpp. What about the other 14 properties to
> > > > describe a row?
> > > 
> > > They don't affect allocation and iteration over them. Thus not
> > > needed for scanline access.
> > 
> > Does that mean, the readers/writers must implement the access
> > themselves for all possible formats?
> 
> Don't they already ? 

No. The readers/writers just use Colors[x,y]:=someTFPColor.
TLazIntfImage will do the conversion.


> pixels property is only an integer.

Pixels is the palette value. The Colors property takes a TFPColor.


Mattias



More information about the Lazarus mailing list