SDL3_image
This page is under development.
- SDL3_image.IMG_AddAnimationEncoderFrame(encoder: LP_IMG_AnimationEncoder, surface: LP_SDL_Surface, duration: c_uint64) c_bool[source]
Add a frame to an animation encoder.
- SDL3_image.IMG_CloseAnimationDecoder(decoder: LP_IMG_AnimationDecoder) c_bool[source]
Close an animation decoder, finishing any decoding.
- SDL3_image.IMG_CloseAnimationEncoder(encoder: LP_IMG_AnimationEncoder) c_bool[source]
Close an animation encoder, finishing any encoding.
- SDL3_image.IMG_CreateAnimatedCursor(anim: LP_IMG_Animation, hot_x: c_int, hot_y: c_int) LP_SDL_Cursor[source]
Create an animated cursor from an animation.
- SDL3_image.IMG_CreateAnimationDecoder(file: c_char_p) LP_IMG_AnimationDecoder[source]
Create a decoder to read a series of images from a file.
- SDL3_image.IMG_CreateAnimationDecoderWithProperties(props: SDL_PropertiesID) LP_IMG_AnimationDecoder[source]
Create an animation decoder with the specified properties.
- SDL3_image.IMG_CreateAnimationDecoder_IO(src: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) LP_IMG_AnimationDecoder[source]
Create a decoder to read a series of images from an IOStream.
- SDL3_image.IMG_CreateAnimationEncoder(file: c_char_p) LP_IMG_AnimationEncoder[source]
Create an encoder to save a series of images to a file.
- SDL3_image.IMG_CreateAnimationEncoderWithProperties(props: SDL_PropertiesID) LP_IMG_AnimationEncoder[source]
Create an animation encoder with the specified properties.
- SDL3_image.IMG_CreateAnimationEncoder_IO(dst: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) LP_IMG_AnimationEncoder[source]
Create an encoder to save a series of images to an IOStream.
- SDL3_image.IMG_FreeAnimation(anim: LP_IMG_Animation) None[source]
Dispose of an IMG_Animation and free its resources.
- SDL3_image.IMG_GetAnimationDecoderFrame(decoder: LP_IMG_AnimationDecoder, frame: LP_LP_SDL_Surface, duration: LP_c_uint64) c_bool[source]
Get the next frame in an animation decoder.
- SDL3_image.IMG_GetAnimationDecoderProperties(decoder: LP_IMG_AnimationDecoder) SDL_PropertiesID[source]
Get the properties of an animation decoder.
- SDL3_image.IMG_GetAnimationDecoderStatus(decoder: LP_IMG_AnimationDecoder) IMG_AnimationDecoderStatus[source]
Get the decoder status indicating the current state of the decoder.
- SDL3_image.IMG_GetClipboardImage() LP_SDL_Surface[source]
Get the image currently in the clipboard.
- SDL3_image.IMG_Load(file: c_char_p) LP_SDL_Surface[source]
Load an image from a filesystem path into a software surface.
- SDL3_image.IMG_LoadANIAnimation_IO(src: LP_SDL_IOStream) LP_IMG_Animation[source]
Load an ANI animation directly from an SDL_IOStream.
- SDL3_image.IMG_LoadAPNGAnimation_IO(src: LP_SDL_IOStream) LP_IMG_Animation[source]
Load an APNG animation directly from an SDL_IOStream.
- SDL3_image.IMG_LoadAVIFAnimation_IO(src: LP_SDL_IOStream) LP_IMG_Animation[source]
Load an AVIF animation directly from an SDL_IOStream.
- SDL3_image.IMG_LoadAVIF_IO(src: LP_SDL_IOStream) LP_SDL_Surface[source]
Load a AVIF image directly.
- SDL3_image.IMG_LoadAnimation(file: c_char_p) LP_IMG_Animation[source]
Load an animation from a file.
- SDL3_image.IMG_LoadAnimationTyped_IO(src: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) LP_IMG_Animation[source]
Load an animation from an SDL_IOStream.
- SDL3_image.IMG_LoadAnimation_IO(src: LP_SDL_IOStream, closeio: c_bool) LP_IMG_Animation[source]
Load an animation from an SDL_IOStream.
- SDL3_image.IMG_LoadGIFAnimation_IO(src: LP_SDL_IOStream) LP_IMG_Animation[source]
Load a GIF animation directly.
- SDL3_image.IMG_LoadGPUTexture(device: LP_SDL_GPUDevice, copy_pass: LP_SDL_GPUCopyPass, file: c_char_p, width: LP_c_int, height: LP_c_int) LP_SDL_GPUTexture[source]
Load an image from a filesystem path into a GPU texture.
- SDL3_image.IMG_LoadGPUTextureTyped_IO(device: LP_SDL_GPUDevice, copy_pass: LP_SDL_GPUCopyPass, src: LP_SDL_IOStream, closeio: c_bool, type: c_char_p, width: LP_c_int, height: LP_c_int) LP_SDL_GPUTexture[source]
Load an image from an SDL data source into a GPU texture.
- SDL3_image.IMG_LoadGPUTexture_IO(device: LP_SDL_GPUDevice, copy_pass: LP_SDL_GPUCopyPass, src: LP_SDL_IOStream, closeio: c_bool, width: LP_c_int, height: LP_c_int) LP_SDL_GPUTexture[source]
Load an image from an SDL data source into a GPU texture.
- SDL3_image.IMG_LoadSizedSVG_IO(src: LP_SDL_IOStream, width: c_int, height: c_int) LP_SDL_Surface[source]
Load an SVG image, scaled to a specific size.
- SDL3_image.IMG_LoadTexture(renderer: LP_SDL_Renderer, file: c_char_p) LP_SDL_Texture[source]
Load an image from a filesystem path into a texture.
- SDL3_image.IMG_LoadTextureTyped_IO(renderer: LP_SDL_Renderer, src: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) LP_SDL_Texture[source]
Load an image from an SDL data source into a texture.
- SDL3_image.IMG_LoadTexture_IO(renderer: LP_SDL_Renderer, src: LP_SDL_IOStream, closeio: c_bool) LP_SDL_Texture[source]
Load an image from an SDL data source into a texture.
- SDL3_image.IMG_LoadTyped_IO(src: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) LP_SDL_Surface[source]
Load an image from an SDL data source into a software surface.
- SDL3_image.IMG_LoadWEBPAnimation_IO(src: LP_SDL_IOStream) LP_IMG_Animation[source]
Load a WEBP animation directly.
- SDL3_image.IMG_LoadWEBP_IO(src: LP_SDL_IOStream) LP_SDL_Surface[source]
Load a WEBP image directly.
- SDL3_image.IMG_Load_IO(src: LP_SDL_IOStream, closeio: c_bool) LP_SDL_Surface[source]
Load an image from an SDL data source into a software surface.
- SDL3_image.IMG_ReadXPMFromArray(xpm: LP_c_char_p) LP_SDL_Surface[source]
Load an XPM image from a memory array.
- SDL3_image.IMG_ReadXPMFromArrayToRGB888(xpm: LP_c_char_p) LP_SDL_Surface[source]
Load an XPM image from a memory array.
- SDL3_image.IMG_ResetAnimationDecoder(decoder: LP_IMG_AnimationDecoder) c_bool[source]
Reset an animation decoder.
- SDL3_image.IMG_Save(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into an image file.
- SDL3_image.IMG_SaveANIAnimation_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an animation in ANI format to an SDL_IOStream.
- SDL3_image.IMG_SaveAPNGAnimation_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an animation in APNG format to an SDL_IOStream.
- SDL3_image.IMG_SaveAVIF(surface: LP_SDL_Surface, file: c_char_p, quality: c_int) c_bool[source]
Save an SDL_Surface into a AVIF image file.
- SDL3_image.IMG_SaveAVIFAnimation_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool, quality: c_int) c_bool[source]
Save an animation in AVIF format to an SDL_IOStream.
- SDL3_image.IMG_SaveAVIF_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool, quality: c_int) c_bool[source]
Save an SDL_Surface into AVIF image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveAnimation(anim: LP_IMG_Animation, file: c_char_p) c_bool[source]
Save an animation to a file.
- SDL3_image.IMG_SaveAnimationTyped_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) c_bool[source]
Save an animation to an SDL_IOStream.
- SDL3_image.IMG_SaveBMP(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a BMP image file.
- SDL3_image.IMG_SaveBMP_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into BMP image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveCUR(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a CUR image file.
- SDL3_image.IMG_SaveCUR_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into CUR image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveGIF(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a GIF image file.
- SDL3_image.IMG_SaveGIFAnimation_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an animation in GIF format to an SDL_IOStream.
- SDL3_image.IMG_SaveGIF_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into GIF image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveICO(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a ICO image file.
- SDL3_image.IMG_SaveICO_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into ICO image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveJPG(surface: LP_SDL_Surface, file: c_char_p, quality: c_int) c_bool[source]
Save an SDL_Surface into a JPEG image file.
- SDL3_image.IMG_SaveJPG_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool, quality: c_int) c_bool[source]
Save an SDL_Surface into JPEG image data, via an SDL_IOStream.
- SDL3_image.IMG_SavePNG(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a PNG image file.
- SDL3_image.IMG_SavePNG_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into PNG image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveTGA(surface: LP_SDL_Surface, file: c_char_p) c_bool[source]
Save an SDL_Surface into a TGA image file.
- SDL3_image.IMG_SaveTGA_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool) c_bool[source]
Save an SDL_Surface into TGA image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveTyped_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool, type: c_char_p) c_bool[source]
Save an SDL_Surface into formatted image data, via an SDL_IOStream.
- SDL3_image.IMG_SaveWEBP(surface: LP_SDL_Surface, file: c_char_p, quality: c_float) c_bool[source]
Save an SDL_Surface into a WEBP image file.
- SDL3_image.IMG_SaveWEBPAnimation_IO(anim: LP_IMG_Animation, dst: LP_SDL_IOStream, closeio: c_bool, quality: c_int) c_bool[source]
Save an animation in WEBP format to an SDL_IOStream.
- SDL3_image.IMG_SaveWEBP_IO(surface: LP_SDL_Surface, dst: LP_SDL_IOStream, closeio: c_bool, quality: c_float) c_bool[source]
Save an SDL_Surface into WEBP image data, via an SDL_IOStream.
- SDL3_image.IMG_Version() c_int[source]
This function gets the version of the dynamically linked SDL_image library.
- SDL3_image.IMG_isANI(src: LP_SDL_IOStream) c_bool[source]
Detect ANI animated cursor data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isAVIF(src: LP_SDL_IOStream) c_bool[source]
Detect AVIF image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isBMP(src: LP_SDL_IOStream) c_bool[source]
Detect BMP image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isCUR(src: LP_SDL_IOStream) c_bool[source]
Detect CUR image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isGIF(src: LP_SDL_IOStream) c_bool[source]
Detect GIF image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isICO(src: LP_SDL_IOStream) c_bool[source]
Detect ICO image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isJPG(src: LP_SDL_IOStream) c_bool[source]
Detect JPG image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isJXL(src: LP_SDL_IOStream) c_bool[source]
Detect JXL image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isLBM(src: LP_SDL_IOStream) c_bool[source]
Detect LBM image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isPCX(src: LP_SDL_IOStream) c_bool[source]
Detect PCX image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isPNG(src: LP_SDL_IOStream) c_bool[source]
Detect PNG image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isPNM(src: LP_SDL_IOStream) c_bool[source]
Detect PNM image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isQOI(src: LP_SDL_IOStream) c_bool[source]
Detect QOI image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isSVG(src: LP_SDL_IOStream) c_bool[source]
Detect SVG image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isTIF(src: LP_SDL_IOStream) c_bool[source]
Detect TIFF image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isWEBP(src: LP_SDL_IOStream) c_bool[source]
Detect WEBP image data on a readable/seekable SDL_IOStream.
- SDL3_image.IMG_isXCF(src: LP_SDL_IOStream) c_bool[source]
Detect XCF image data on a readable/seekable SDL_IOStream.