export modified image without display?
Posted: Sun Dec 30, 2007 6:21 am
I'm trying to import an image. Have the user pick a color to change the tint of the image. Then export the changed image.
I don't however want the user to see the image.
So far here is what I got:
I've tried "export image" and various other formats of "export snapshot", but they just give me the original image without the ink changes. The above code is successful at giving me the modified image and outside of not figuring out the tinting yet. The main problem I'm having is exporting the changed image without the user seeing it. Is what I'm looking for possible in RR?
I don't however want the user to see the image.
So far here is what I got:
Code: Select all
answer files "Select the files you wish to process:"
put it into TheFilePath
import paint from file TheFilePath into image "ImageFile" of card id 1028
answer color with 255,255,255
put it into Color2Tint1
set the ink of image "ImageFile" to blendDifference -- I don't know if this isn't the correct one for tinting. Haven't found that yet.
wait 10 tick
export snapshot from rectangle (the rectangle of image "ImageFile") of card id 1028 to file "Thumbnail.png" as PNG