On Mar 4, 2006, at 7:00 PM, Tristan wrote:

Code is in a timer:

app.DockItem.graphics.ClearRect 0,0,128,128
app.DockItem.graphics.drawPicture Picture1,0,0
app.dockitem.updatenow


How do I draw the mask? (The picture above is a TIFF file but i want to accept JPEG also)


The problem is that Picture1 doesn't have a mask. You need to create one for it. REALbasic (unfortunately even in 2006!!!) doesn't support reading an image file and including its alpha channel. Your Picture1 will need to be split into two images, one for the image and another for the mask. Then in code you draw the mask picture into the image's Mask property and then you can draw the entire thing onto the dock item.



Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to