Can a mask file be in the Documents folder?

So my app downloads a resource that generated on the server. I’d like to be able to mask it, but it’s resolution could change.

How would I open a mask.png file from the documents folder?

Like this?

-- Create mask and apply to image  
local mask = graphics.newMask( "Documents/circlemask.png" )  
image:setMask( mask )  

I can’t seem to get it to work.
[import]uid: 13784 topic_id: 23274 reply_id: 323274[/import]

try

local mask = graphics.newMask( "circlemask.png", system.DocumentsDirectory )  

The API docs say

local mask = graphics.newMask( filename [, baseDir] ) [import]uid: 127106 topic_id: 23274 reply_id: 93231[/import]

Thanks. Yup, that did the trick. Brain fart. :slight_smile: [import]uid: 13784 topic_id: 23274 reply_id: 93312[/import]