stack two images and apply shader-based alpha-mask to topmost image so it is seen through masking area
call bitmapToSave.bitmapData.draw(stage)
encode “bitmapToSave” to jpeg and save it to file
But in the result there is non-masked image over another. Though in js-version I can save html-canvas (canvas.toDataURL) with correct result, I want to build a native app.
I’m out of my comfort zone here so I might be wrong but I would look on the Lime side of things for this, probably starting with Application.current.window.readPixels(rect) and dig from here
There is a Lime channel on the official Discord server (do a search on “haxe discord” to join it), maybe ask there (if you get an answer please take some time to report it here )