[Gambas-user] Transparency showing black on a custom qt control.
Bruce Steers
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
> work
> >
> > 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
>
> https://gitlab.com/gambas/gambas/-/commit/52c3a45680be6c76a8056c4a0c663490f14f4ea6
> .
>
> Regards,
>
> --
> Benoît Minisini
>
Cheers Ben, had me puzzling for sometime that one did.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220106/351c9b68/attachment.htm>
More information about the User
mailing list