This PR deprecates the sdl2.ext.load_image function (which returned inconsistent SDL surface types depending on the back end used), and adds the new functions sdl2.ext.load_bmp and sdl2.ext.load_img to take its place.
This also adds a new function sdl2.ext.save_bmp for saving SDL surfaces as BMP files, as well as another function sdl2.ext.pillow_to_surface for converting PIL Image.Image() objects into SDL surfaces.
Merge Checklist
[x] the PR has been reviewed and all comments are resolved
PR Description
This PR deprecates the
sdl2.ext.load_image
function (which returned inconsistent SDL surface types depending on the back end used), and adds the new functionssdl2.ext.load_bmp
andsdl2.ext.load_img
to take its place.This also adds a new function
sdl2.ext.save_bmp
for saving SDL surfaces as BMP files, as well as another functionsdl2.ext.pillow_to_surface
for converting PILImage.Image()
objects into SDL surfaces.Merge Checklist
closes #<issue-number>
to automatically close an issue