[Gambas-user] Image api changed in gambas 3
Laurent Carlier
lordheavym at ...626...
Tue Sep 1 09:29:44 CEST 2009
Since svn commit #2294, image api as changed:
- MakeTransparent() and MakeGray() are renammed to Transparent() and Gray()
- All Methods are applying the effect on the image itself, not to a returned
copy ! If you need to apply the effect, do a copy before with the Copy()
method.
The benefict effect is that now you can easily chain effects:
Image.Load($mypic &/ ".jpg")..Mirror(True,
True).Colorize(Color.Blue).Gray().Resize(100, 100).save($mypic & "new.jpg")
Currently some api are not yet changed, but should be in future (some gb.qt4,
gb.qt, gb.gtk).
Have fun !
More information about the User
mailing list