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

Benoît Minisini gambas at ...1...
Mon Sep 17 23:48:33 CEST 2012


Le 17/09/2012 23:39, RICHARD WALKER a écrit :
> I am now convinced I am getting too old for this game.
>
> I managed to package a broken project.
>
> One critical line is missing from the copy button handler. Here is the
> whole thing:
>
> Public Sub CopyButton_Click()
>
> Dim tmpImage As Image
>
>      If FLogo.Visible Then
>          With FLogo.Picture
>              tmpImage = New Image(.W, .H, Color.White)
>              tmpImage.PaintImage(.Image, 0, 0)
>          End With
>          Clipboard.Copy(tmpImage)
>      Endif
>
> End
>

Yes, I saw it. But it does not change that gb.gtk seems to be buggy when 
copying an image, otherwise a blank image would have been pasted, and 
not some garbage.

-- 
Benoît Minisini




More information about the User mailing list