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

Fabien Bodard gambas.fr at ...626...
Fri Feb 25 13:43:12 CET 2011


2011/2/25 Demosthenes Koptsis <demosthenesk at ...626...>:
> 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.
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


with color.rgb(red, green, blue, alpha)


-- 
Fabien Bodard




More information about the User mailing list