[Gambas-user] Pb with transparency?

Simonart Dominique simonart.dominique at ...11...
Mon Apr 27 01:52:13 CEST 2009


Hi,

Gambas 2.12 with QT

I had a prog that worked well in Gambas 2.11 but now it 
doesn't work correctly for all the images with transparent 
areas.
Here is a very short illustration of the problem

DIM PicSac AS Picture
DIM PicCase AS Object[]
Dim i AS Integer

PicCase.Resize(2)
FOR i = 0 TO 1
    PicCase[i] = NEW Picture(14, 14, TRUE)
NEXT
PicCase[0] = Picture.Load(image with some transparent part)
PicCase[1] = Picture.Load(image without transparent area)

PicSac = NEW Picture(14, 14, TRUE)
i = 0
Draw.Begin(PicSac)
Draw.Picture(PicCase[i], 0, 0, 14, 14, 0, 0, 14, 14)
Draw.End

PictureBox1.Picture = PicSac

i = 0 => nothing displayed
i = 1 => correct display
(I know that Gambas 2.12 changed the Draw routine)
Is it a bug?

regards,
Dominique Simonart






More information about the User mailing list