<div>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:<br>
</div><div><a href="http://wiki.lazarus.freepascal.org/BGRABitmap">http://wiki.lazarus.freepascal.org/BGRABitmap</a></div><div>and few tutorials (with nice effects):</div><div><a href="http://wiki.lazarus.freepascal.org/BGRABitmap_tutorial">http://wiki.lazarus.freepascal.org/BGRABitmap_tutorial</a></div>
<div>This is crossplatform library</div><br><div class="gmail_quote">2011/4/12 Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 2011-04-12 19:22:36 +0200, Krzysztof wrote:<br>
>    This is known issue. GTK have no alpha yet but I created set of components<br>
>    which partially solve this problem by using BGRABitmap class, details:<br>
>    <a href="http://www.lazarus.freepascal.org/index.php/topic,12411.0.html" target="_blank">http://www.lazarus.freepascal.org/index.php/topic,12411.0.html</a> . Although<br>
>    there is no TImage yet but I can try create it.<br>
>    For TrayIcon on GTK you must rebuild lazarus with -dUseStatusIcon switch.<br>
>    If tray still have no alpha then you must add this 3 lines posted by<br>
>    TrUsTeR:<br>
>    <a href="http://www.lazarus.freepascal.org/index.php/topic,6583.0.html" target="_blank">http://www.lazarus.freepascal.org/index.php/topic,6583.0.html</a><br>
>    After this tray icon works perfect in my case.<br>
</div>>    2011/4/10 Leonardo M. Rame <<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>><br>
<div class="im">><br>
>      Hi, I was testing a sample project and found that on Windows, handling<br>
>      of PNGs with transparent backgrounds is working ok, but on Linux it<br>
>      doesn't work as expected. The image is a black line on the top of the<br>
>      image, with a Gaussian Blur applied on Photoshop, then saved to PNG with<br>
>      transparent background.<br>
><br>
>      I attached an image showing what I get on Windows vs Linux, also the<br>
>      original image.<br>
><br>
>      Thanks in advance,<br>
>      --<br>
</div>>      Leonardo M. Rame<br>
<div class="im">>      <a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
>      --<br>
>      _______________________________________________<br>
>      Lazarus mailing list<br>
>      <a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
>      <a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br>
> --<br>
> _______________________________________________<br>
> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
> <a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div>Well, I don't really need TImage, but TPicture. What I need is to be<br>
able to use TCanvas methods to copy this picture into another TCanvas.<br>
<br>
Does your component allows this?<br>
<font color="#888888"><br>
<br>
<br>
--<br>
</font><div><div class="h5">Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br>
</div></div></blockquote></div><br>