Using image sheets with graphics.newMask()

No replies
stevebreslin
User offline. Last seen 4 years 42 weeks ago. Offline
Joined: 8 Mar 2012

I'd like to use an image sheet frame with graphics.newMask() instead of an image filename. So instead of:

1
               myMaskPtr = graphics.newMask("myMask.png");

I'd like to use something like:

1
2
        myImageSheetPtr = graphics.newImageSheet("myImageSheetMasks.png", mySheetData);
        myMaskPtr = graphics.newMask(myImageSheetPtr, 2);

Any ideas? Is it possible?