S
Schakal
Guest
Hallo everybody,
i have problems with views and taking screenshots/sprites.
i use the extension perfect-fit-mobile-template from the marketplace. that means on mobile phones i use a view from the most space of the room on the whole display.
on windows without the the extension i can use
(I founded this code snippet in the past)
screen_save() is not fast enough for my situation
but i dont know how i get this with a view working i get only streched pictures...
Can somebody help me?
Thanks
i have problems with views and taking screenshots/sprites.
i use the extension perfect-fit-mobile-template from the marketplace. that means on mobile phones i use a view from the most space of the room on the whole display.
on windows without the the extension i can use
Code:
w = surface_get_width(application_surface);
h = surface_get_height(application_surface);
tempsurf = surface_create(w,h);
surface_set_target(tempsurf);
draw_clear(c_black);
draw_set_colour_write_enable(true,true,true,false);
draw_enable_alphablend(false);
draw_surface(application_surface,0,0);
draw_set_colour_write_enable(true,true,true,true);
draw_enable_alphablend(true);
surface_reset_target();
spriteExplodeBG = sprite_create_from_surface(tempsurf, 0, 0, w, h, false, false, 0, 0);;
surface_free(tempsurf);
screen_save() is not fast enough for my situation
but i dont know how i get this with a view working i get only streched pictures...
Can somebody help me?
Thanks
Last edited by a moderator: