[Gambas-user] Image overlays
Johan Wistrom
k4p0w3r at ...370...
Tue Mar 7 15:20:54 CET 2006
Hello,
Unless you .Clear the Picture/Image before drawing,
all drawing operations will be overlayed.
draw.begin(originalpicture)
draw.picture(lockpicture,x,y)
draw.end
or you might want to perform the drawing operations on
a temp picture:
temppicture.clear
draw.begin(temppicture)
draw.picture(originaliconpicture,0,0)
draw.picture(lockpicture,x,y)
draw.end
You might need to .Refresh the picture/picture.image
to see the changes but shouldn't be necessary.
Johan
--- GuruLounge - MailLists
<maillists at ...1367...> wrote:
> Hi,
>
> Does anyone have an idea how I might be able to
> overlay one image on top
> of another in a picture object?
>
> I have a lot of icons in my project and I need to be
> able to mark an
> icon as locked or not in a treeview control.
> Creating a "locked" icon
> for every item wouldn't work for this particular
> project.
>
> Thanx,
> Jeff
>
> --
>
> .^.
> /V\
> /( )\
> ^^-^^
> Linux Advocate
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by xPML, a
> groundbreaking scripting language
> that extends applications into web and mobile media.
> Attend the live webcast
> and join the prime developer group breaking into
> this new coding territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/gambas-user
>
___________________________________________________________
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/
More information about the User
mailing list