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é <[email protected]> > 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 > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
