[Gambas-user] How do I replace Image transparent background with a white background?

William Cabrera cabrerawilliam at ...626...
Sun Sep 16 20:04:49 CEST 2012


Hi, you can use something like

$hImage = $hImage.Replace(Color.Transparent, Color.White)

------
William Cabrera
http://willicab.gnu.org.ve



2012/9/16 RICHARD WALKER <richard.j.walker at ...247...>

> I have hacked the OnScreenDisplay example project to allow me to
> display user-entered text instead of the time, and to permit
> interactive tweaking of colours and depth of 3D effect and font size.
>
> I also added a way to save the result to a png file and now I am
> trying to copy it to the clipboard as well.
>
> The trouble is that when I paste the result into, for example, a
> Libreoffice Writer page, the alpha channel displays as black.
>
> If, instead, I insert the saved png then the background is transparent.
>
> What I want to do is temporarily convert the image so that instead of
> being transparent it has a white background when copied to the
> clipboard.
>
> Any ideas?
>
> Richard
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list