[Gambas-user] Image.Gradient help please

M0E Lnx m0e.lnx at ...626...
Fri Jan 11 19:12:57 CET 2008


On Jan 11, 2008 12:09 PM, Benoit Minisini <gambas at ...1...> wrote:
>
> On vendredi 11 janvier 2008, M0E Lnx wrote:
> > I'm trying to create a text label with a gradient background
> > (white-to-blue, left to right)
> > I've been reading abotu image.gradient in the gb.image section of the
> > wiki, but I'm having a hard time understanding how this is supposed to
> > work
> >
> > Has anyone done this before?
> > Can anyone think of a way to do this?
> > I'd rather try to get gambas to do this instead of drawing hard images
> > of the text labels
> >
>
> Have you read the documentation before? As written in it, Image.Gradient is a
> static method that "creates a gradient from a source color to a destination
> color and returns it as a new image". A gradient type can be specified.
>
> Once created, you can paint the gradient image with the Draw.Image() or
> Draw.Picture() methods. But you cannot use it as a brush at the moment.
>
> Regards,
>
> --
> Benoit Minisini
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

I've managed to create the gradient... but I had no idea how to use it
as a background for a label or button.
And yes, I've read the documentation... that's how I managed to create
it, but never could determine what to do with the thing once it was
ceated.
the text label backcolor property wont take an image I suppose, so I'd
have to draw the image + text and use it as a button?




More information about the User mailing list