[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    Re: [Gambas-user] Image.DrawRect() is same with Image.FillRect()
From:       Demosthenes Koptsis <demosthenesk () gmail ! com>
Date:       2011-02-26 16:29:45
Message-ID: 1298737785.17025.1.camel () ubuntu-desktop
[Download RAW message or body]

ok, i found color.setalpha(). it is ok for integer color values than RGB
format. i use integer values.

On Fri, 2011-02-25 at 13:43 +0100, Fabien Bodard wrote:
> 2011/2/25 Demosthenes Koptsis <demosthenesk@gmail.com>:
> > 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@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> 
> with color.rgb(red, green, blue, alpha)
> 
> 

-- 
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic