CodeManu
Member
Hey all!
I've been trying to export an surface (via surface_save method) into a .png, but due to how alpha blending works on surfaces it gets tinted (towards black as I'm using draw_clear_alpha(c_black,0) to clear the surface).
I know this is the correct behaviour, and that It can be fixed by premultiplying alpha and using bm_one,bm_inv_src_alpha blendmode when drawing, but this doesn't apply to saving the surface as you can't apply the blendmode to the saved file.
Any clues on how to proceed?
I've been trying to export an surface (via surface_save method) into a .png, but due to how alpha blending works on surfaces it gets tinted (towards black as I'm using draw_clear_alpha(c_black,0) to clear the surface).
I know this is the correct behaviour, and that It can be fixed by premultiplying alpha and using bm_one,bm_inv_src_alpha blendmode when drawing, but this doesn't apply to saving the surface as you can't apply the blendmode to the saved file.
Any clues on how to proceed?