[Gambas-user] Image.DrawRect() is same with Image.FillRect()

Demosthenes Koptsis demosthenesk at ...626...
Fri Feb 25 11:10:07 CET 2011


ok, something else.

i see there is no documentation but if you like to answer a question
about DrawRect.

how i declare transparency to a color?
i see the syntax is
Image.DrawRect(X,Y,Width,Height,Color)



On Fri, 2011-02-25 at 01:27 +0100, Benoît Minisini wrote:
> > Hi,
> > 
> > i use the Image.DrawRect but i get the same result with Image.FillRect
> > i use gnome and ubuntu 10.04.
> > 
> > project
> > http://www.mediafire.com/?kplu15bfewnmgb8
> > 
> > lines 109-119
> 
> Actually the names are not well chosen.
> 
> Draw.FillRect() fills an opaque rectangle with a color.
> 
> Draw.DrawRect() fills a rectangle, but merge the rectangle with the image if 
> the color is transparent.
> 
> Regards,
> 

-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list