[Gambas-user] Transparency showing black on a custom qt control.
bsteers4 at gmail.com
Thu Jan 6 22:07:33 CET 2022
On Thu, 6 Jan 2022 at 13:53, Benoît Minisini <g4mba5 at gmail.com> wrote:
> Le 06/01/2022 à 04:45, Bruce Steers a écrit :
> > Anyone had an instance where a DrawingArea Paint.DrawImage() command
> > painte with a black background (but only on qt)
> > wondering if it's a common problem?
> > Tried using Draw and setting Draw.Transparency, can't get anything to
> > i'll attach the proj............................
> > Hod the phone,,i figured it out.
> > Problem was because i used image.Copy()
> > Seems if you Copy() an image it kills the transparency but only on qt :-\
> > I attach a simple test app.
> > it just has 2 PictureBox controls.
> > this is it's code...
> > *Pic = Picture["icon:/96/gambas"]
> > PictureBox1.Picture = Pic
> > PictureBox2.Picture = Pic.Copy()
> > *
> > on GTK both images have transparent BG, but on QT the Copy has black BG.
> > Respects
> > BruceS
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> It is fixed by commit
> Benoît Minisini
Cheers Ben, had me puzzling for sometime that one did.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User