On Wed, 22 Nov 2006 09:03:52 -0200
Andreas Berger <[EMAIL PROTECTED]> wrote:

> @Felipe,
> 
> I will come back to this subject. I will be too busy for the next 2-3 
> weeks, but after that I will try fpImage and LazIntfImage and see how 
> they work. Any problems I will give a complete feedback - with code
> if necessary.

TLazIntfImage is just an extension to TFPCustomImage.
It adds the ability to read/write various raw image formats in memory.
The LCL provides the information, how the current widgetset (gtk,
win32, ...) stores its images in memory (depth, alpha, alignment, bit
order, ...) and TLazIntfImage allows fpImage functions to read/write
pixels. For example the LCL image loading/saving functions use fpImage
and TLazIntfImage to create images in the format of the current
widgetset and can then give this image without conversion to the
widgetset to create a Handle.

For Delphians: TLazIntfImage is the Delphi TBitmap.ScanLine but more
general and more platform independent.

At the moment the LCL uses TLazIntfImage only on copies and not
directly on the memory of Handles. Copying data is very fast, so this
is good enough for whole images. Eventually there might come more
direct access for those widgetsets supporting it (win32).


Mattias


> 
> Andreas
> 
> Felipe Monteiro de Carvalho wrote:
> > On 11/21/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> >> Do you manipulate bitmaps at runtime? The only reason I have not
> >> fully switched is that I can not get transparent bitmaps to work
> >> correctly. I have a simple sprite system that shows the states of
> >> the machines being controlled, but when I manipulate the bitmap, I
> >> have problems with the mask - and transparency sometimes simply
> >> vanishes.
> >
> > I sugest you create a small example that reproduces the problem and
> > help us track it and solve it.
> >
> > I use transparent bitmaps on the magnifier (
> > http://magnifier.sourceforge.net/ ) and it always worked good. But I
> > only use images with color transparency, and the only operations I
> > do is draw and stretchdraw.
> >
> > What operations do you use, and which ones cause trouble?
> >
> >> Is fpImage (or even fpImg) different. Should I base my images on
> >> them instead of TImage and TBitmap?
> >
> > Maybe you could try using TLazIntfImage together with TBitmap to
> > manipulate the image. TLazIntfImage gives lower level access. There
> > is documentation here:
> >
> > http://wiki.lazarus.freepascal.org/Developing_with_Graphics
> >
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to