[Gambas-user] RGB components from color

Laurent Carlier lordheavy at ...512...
Mon Oct 16 10:50:41 CEST 2006


Le lundi 16 octobre 2006 10:48, Marco Colnaghi a écrit :
> I'm using gambas 1.0.15 (Debian Etch).
>
> I asked info about getting RGB components from a color (integer)
>
> I had and hint, but I still have problems:
> > > Is there a function giving back the red (or green or blue) component of
> > > a color? (equivalent to qRed in QT)
> >
> > Color[Value].Red
> > Color[Value].Green
> > Color[Value].Blue
>
> this does not work in my gambas (Error: Color is not an array)
>
> Can please someone help me?
> A simple line of code would be very helpful.
>
> Thanks in advance,
> Marco.
>

PRINT color[&hFFFFFFFF].Red

-> 255

Regards,





More information about the User mailing list