Under SDL-2, how to set alpha degree for SDL_Surface?

SDL_SetSurfaceAlphaMod can set alpha degree, but it seems effective only for image render, not the image itself.

I need to change the alpha degree for image and save the image to disk.

Thanks :smiley:

You could always render to a new surface (after setting the alpha value) and then save it.

:smiley: