[Gambas-user] Drawing using tranparency
Daniel Campos
dcamposf at ...626...
Thu Aug 31 14:41:52 CEST 2006
2006/8/31, Marco Colnaghi Libero IMAP <marco.colnaghi at ...69...>:
> I'm trying to blend together 2 images but with bad results.
>
> just to start this work I have some questions I can't find an answer:
>
> 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
>
> How can I change the alpha level of an image? Putting transparency to true
> enables transparency but I can't figure out how to dim the image before
> printing.
Get each pixel:
Value=hImage[Px,Py]
Modify the alpha part of the color and the put the pixel again:
hImage[Px,Py]=Value
Daniel
More information about the User
mailing list