def load_n_scale_img(image_file, w, h): tmp = sdl2.ext.load_image(image_file) tmp2 = sdlgfx.zoomSurface(tmp, w/tmp.w, h/tmp.h, sdlgfx.SMOOTHING_ON) tmp2 = tmp2.contents print(image_file, tmp.w, tmp.h, tmp2.w, tmp2.h) return tmp2
def load_n_scale_img(image_file, w, h): tmp = sdl2.ext.load_image(image_file) return sdlgfx.zoomSurface(tmp, w/tmp.w, h/tmp.h, sdlgfx.SMOOTHING_ON)
def load_n_scale_img(image_file, w, h): tmp = sdl2.ext.load_image(image_file) return sdlgfx.zoomSurface(tmp, w / tmp.w, h / tmp.h, sdlgfx.SMOOTHING_ON)