I have a display group, which is partially masked.
Now i need to save the visible part of the display group to a file.
So I a using display.save
Thr problem is, the masked part while not being saved as such, appears as a black strip.
Say my Image and my mask are as follows (both 320 x 480).
Now, on applying the mask my image looks like this on screen.
Now on using display.save I expect the final saved image to look something like this.
But what I get is this: - the full 320 x 480 image.
What to do?
display.capturebounds might have been an option, but my mask file is not always a rectangle.
Also display.captureBounds only returns the display object, which I have to save using display.save again, which is too much processes on the screen making the UI ugly.
Is this a bug?
Any workarounds/suggestions?