[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2972: The Opacity property of Image does not work


http://gambaswiki.org/bugtracker/edit?object=BUG.2972&from=L21haW4-

Comment #2 by Bruce STEERS:

And this first code.

  im = Image.Load("./woman-e.png")  

   With Paint
     .Begin(im)
     .DrawImage(im, 0, 0, im.W, im.H, 0.9, Null)
     .Fill
     .End
   End With


Looks good initially but then you see it loads a non opaque image and then paints opaque one over it , so you all you see is solid
.
This works

  im = New Image(96, 96, Color.Background)  ' make a blank imge

   With Paint
     .Begin(im)
     .DrawImage(Image.Load("./woman-e.png"), 0, 0, im.W, im.H, 0.5)  ' load ./woman-e.png and paint onto blank im
     .Fill
     .End
   End With


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----