Already tried this method (but not twice).
Most of effects produce the same result — a basic transparency effect on every colours —, though some display nothing. Maybe these strange results come from the transparent window shape?
I use this script to make the desired part of my stack transparent:
Code: Select all
on recreateWindowShape blendValue, inkMode
# This handler takes a snapshot of group "GpeViewer", which contains all our
# controls and most importantly the background image "WindowShape"
clearGraphic // card : Delete the window shape image if there is one
try
set the ink of image "BkImg" to inkMode
set the blendLevel of image "BkImg" to blendValue
catch errorVariable
answer "Invalid blendLevel or inkMode." & cr & cr & inkMode & cr & blendValue
exit recreateWindowShape
end try
# Set the properties of the template image which will apply to our new window shape
# image when we use the command 'snapshot'
set the visible of the templateImage to false
set the paintCompression to "png"
set the resizeQuality of image "BkImg" to Best
set the alwaysBuffer of image "BkImg" to true
# Take a snapshot of the whole group, including all the controls
import snapshot from group "GpeViewer"
set the name of the last image to "WindowShape"
# Finally, set the window shape of the stack to the new image
set the windowShape of this stack to (the id of image "WindowShape")
end recreateWindowShape