I have :
Code: Select all
import paint from file dragData["files"] with mask specialfolderpath("desktop") & "/exhibit.pbm"
the mask is a .pbm plain black tile 300px x 300px
So i would have assumed i would get as a result a completely transparent image in my test.
I don't..!
What i get is the image in it's original appearance.
The docs say :
Am i misinterpreting this.. and i actually need the dragged in image file to also be in the .pbm format...?import type from file filePath [with mask maskFilePath]
eg: import paint from file it with mask "/etc/res/oval.pbm"
The maskFilePath specifies the name and location of a one-bit mask file for an image. You can use a mask file only if the file being imported is in the PBM format.
Mind.. i tried this and it throws an error..!
??