Code: Select all
tv_getPath TEMP
myFile= result"cutbrush.png"
tv_saveMode "PNG"
tv_AlphaSaveMode "NoPreMultiply"
tv_SaveDisplay myFile
tv_LoadBrush myFile
Code: Select all
tv_getPath TEMP
myFile= result"cutbrush.png"
tv_saveMode "PNG"
tv_AlphaSaveMode "NoPreMultiply"
tv_SaveDisplay myFile
tv_LoadBrush myFile
I think the logic is that any final representation of the Display image must include pixels assigned the the background color or partially transparent pixels which alpha-blend with the background color. So the resultant RGB image is composed of pixels which are all 100% opaque.madsjuul wrote:But I was wondering. Why isnt tv_saveDisplay keeping the Alpha channel? I think it should do this.
Code: Select all
tv_getPath TEMP
myFile= result"cutbrush.png"
tv_saveMode "PNG"
tv_AlphaSaveMode "NoPreMultiply"
tv_SaveDisplay myFile
tv_LoadBrush myFile