[Lazarus] TImage and PNG (on linux)
Krzysztof
dibo20 at wp.pl
Tue Apr 12 20:36:34 CEST 2011
I am not the author of BGRABitmap class but I think it is easy to assign
bitmap from resource to BGRABitmap class. You can load image from resource
using TResourceStream (there is tutorial on wiki) and then call
BGRABitmap.LoadFromStream(MyResourceStream)
2011/4/12 Leonardo M. Ramé <l.rame at griensu.com>
> On 2011-04-12 20:18:48 +0200, Krzysztof wrote:
> > So if you want operate on bitmaps and canvas then maybe it is better
> to
> > read about BGRABitmap and do this same things which i'm doing in my
> > components. This is very interesting class. You can load PNG image to
> this
> > class and draw wherever you want similar like with canvas (but with
> > alpha). Details:
> > http://wiki.lazarus.freepascal.org/BGRABitmap
> > and few tutorials (with nice effects):
> > http://wiki.lazarus.freepascal.org/BGRABitmap_tutorial
> > This is crossplatform library
> >
> You are right Krzysztof, in fact, I adapted my code to BGRABitmap and it
> worked like a charm.
>
> Just a note. I miss the LoadFromLazResource method, like TPicture. Do you
> plan
> to add this feature?.
>
> --
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110412/9d15b768/attachment-0003.html>
More information about the Lazarus
mailing list