sercan
Member
var surf;
surf = application_surface;
surface_set_target(surf);
spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0);
sprite_save(spr_test,0,path);
surface_reset_target();
this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which has alpha of less than 1 ( I mean transparent ) turns to gray. where they are white actually. here are the screenshots.
yellow to white as normal
with surface created as seen we have a bit of gray now.
looks like as there is a black surface between yellow and white layers. so transparent white areas become gray.
I need the sprite as same as i see on screen. What should I do?
Note: screen_save_part or screen_save is not working with android. thats why i use surfaces.
Thanks.
surf = application_surface;
surface_set_target(surf);
spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0);
sprite_save(spr_test,0,path);
surface_reset_target();
this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which has alpha of less than 1 ( I mean transparent ) turns to gray. where they are white actually. here are the screenshots.
yellow to white as normal
with surface created as seen we have a bit of gray now.
looks like as there is a black surface between yellow and white layers. so transparent white areas become gray.
I need the sprite as same as i see on screen. What should I do?
Note: screen_save_part or screen_save is not working with android. thats why i use surfaces.
Thanks.