[Gambas-user] Warning with Gambas 3

Benoit Minisini gambas at ...1...
Wed Jan 21 21:00:49 CET 2009


Hi,

Beware that in the latest revision of the development version, the syntax of 
the Image constructor has changed.

Before, it was:

--------
New Image(Width As Integer, Height As Integer, Optional Transparent As 
Boolean)
--------

Now, Image are always transparent, and the syntax is:

--------
New Image(Optional Width As Integer, Optional Height As Integer, Optional 
Format As Integer, Optional Color As Integer)
--------

Format can be Image.Standard, or Image.Premultiplied, the latest meaning than 
the color components are premultiplied by the alpha component.

Color is a color that will be used to initialize the image contents. 
Otherwise, the contents is undefined.

Regards,

-- 
Benoit Minisini




More information about the User mailing list