image topic
CategorySDLImage
Header file for SDL_image library
A simple library to load images of various formats as SDL surfaces
Functions
-
imgAddAnimationEncoderFrame(
Pointer< imageImgAnimationEncoder> encoder, Pointer<SdlSurface> surface, int duration) → bool - Add a frame to an animation encoder.
-
imgCloseAnimationDecoder(
Pointer< imageImgAnimationDecoder> decoder) → bool - Close an animation decoder, finishing any decoding.
-
imgCloseAnimationEncoder(
Pointer< imageImgAnimationEncoder> encoder) → bool - Close an animation encoder, finishing any encoding.
-
imgCreateAnimationDecoder(
String? file) → Pointer< imageImgAnimationDecoder> - Create a decoder to read a series of images from a file.
-
imgCreateAnimationDecoderIo(
Pointer< imageSdlIoStream> src, bool closeio, String? type) → Pointer<ImgAnimationDecoder> - Create a decoder to read a series of images from an IOStream.
-
imgCreateAnimationDecoderWithProperties(
int props) → Pointer< imageImgAnimationDecoder> - Create an animation decoder with the specified properties.
-
imgCreateAnimationEncoder(
String? file) → Pointer< imageImgAnimationEncoder> - Create an encoder to save a series of images to a file.
-
imgCreateAnimationEncoderIo(
Pointer< imageSdlIoStream> dst, bool closeio, String? type) → Pointer<ImgAnimationEncoder> - Create an encoder to save a series of images to an IOStream.
-
imgCreateAnimationEncoderWithProperties(
int props) → Pointer< imageImgAnimationEncoder> - Create an animation encoder with the specified properties.
-
imgFreeAnimation(
Pointer< imageImgAnimation> anim) → void - Dispose of an IMG_Animation and free its resources.
-
imgGetAnimationDecoderFrame(
Pointer< imageImgAnimationDecoder> decoder, Pointer<Pointer< frame, Pointer<SdlSurface> >Uint64> duration) → bool - Get the next frame in an animation decoder.
-
imgGetAnimationDecoderProperties(
Pointer< imageImgAnimationDecoder> decoder) → int - Get the properties of an animation decoder.
-
imgGetAnimationDecoderStatus(
Pointer< imageImgAnimationDecoder> decoder) → int - Get the decoder status indicating the current state of the decoder.
-
imgIsAvif(
Pointer< imageSdlIoStream> src) → bool - Detect AVIF image data on a readable/seekable SDL_IOStream.
-
imgIsBmp(
Pointer< imageSdlIoStream> src) → bool - Detect BMP image data on a readable/seekable SDL_IOStream.
-
imgIsCur(
Pointer< imageSdlIoStream> src) → bool - Detect CUR image data on a readable/seekable SDL_IOStream.
-
imgIsGif(
Pointer< imageSdlIoStream> src) → bool - Detect GIF image data on a readable/seekable SDL_IOStream.
-
imgIsIco(
Pointer< imageSdlIoStream> src) → bool - Detect ICO image data on a readable/seekable SDL_IOStream.
-
imgIsJpg(
Pointer< imageSdlIoStream> src) → bool - Detect JPG image data on a readable/seekable SDL_IOStream.
-
imgIsJxl(
Pointer< imageSdlIoStream> src) → bool - Detect JXL image data on a readable/seekable SDL_IOStream.
-
imgIsLbm(
Pointer< imageSdlIoStream> src) → bool - Detect LBM image data on a readable/seekable SDL_IOStream.
-
imgIsPcx(
Pointer< imageSdlIoStream> src) → bool - Detect PCX image data on a readable/seekable SDL_IOStream.
-
imgIsPng(
Pointer< imageSdlIoStream> src) → bool - Detect PNG image data on a readable/seekable SDL_IOStream.
-
imgIsPnm(
Pointer< imageSdlIoStream> src) → bool - Detect PNM image data on a readable/seekable SDL_IOStream.
-
imgIsQoi(
Pointer< imageSdlIoStream> src) → bool - Detect QOI image data on a readable/seekable SDL_IOStream.
-
imgIsSvg(
Pointer< imageSdlIoStream> src) → bool - Detect SVG image data on a readable/seekable SDL_IOStream.
-
imgIsTif(
Pointer< imageSdlIoStream> src) → bool - Detect TIFF image data on a readable/seekable SDL_IOStream.
-
imgIsWebp(
Pointer< imageSdlIoStream> src) → bool - Detect WEBP image data on a readable/seekable SDL_IOStream.
-
imgIsXcf(
Pointer< imageSdlIoStream> src) → bool - Detect XCF image data on a readable/seekable SDL_IOStream.
-
imgIsXpm(
Pointer< imageSdlIoStream> src) → bool - Detect XPM image data on a readable/seekable SDL_IOStream.
-
imgIsXv(
Pointer< imageSdlIoStream> src) → bool - Detect XV image data on a readable/seekable SDL_IOStream.
-
imgLoad(
String? file) → Pointer< imageSdlSurface> - Load an image from a filesystem path into a software surface.
-
imgLoadAnimation(
String? file) → Pointer< imageImgAnimation> - Load an animation from a file.
-
imgLoadAnimationIo(
Pointer< imageSdlIoStream> src, bool closeio) → Pointer<ImgAnimation> - Load an animation from an SDL_IOStream.
-
imgLoadAnimationTypedIo(
Pointer< imageSdlIoStream> src, bool closeio, String? type) → Pointer<ImgAnimation> - Load an animation from an SDL datasource
-
imgLoadApngAnimationIo(
Pointer< imageSdlIoStream> src) → Pointer<ImgAnimation> - Load an APNG animation directly from an SDL_IOStream.
-
imgLoadAvifAnimationIo(
Pointer< imageSdlIoStream> src) → Pointer<ImgAnimation> - Load an AVIF animation directly from an SDL_IOStream.
-
imgLoadAvifIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a AVIF image directly.
-
imgLoadBmpIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a BMP image directly.
-
imgLoadCurIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a CUR image directly.
-
imgLoadGifAnimationIo(
Pointer< imageSdlIoStream> src) → Pointer<ImgAnimation> - Load a GIF animation directly.
-
imgLoadGifIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a GIF image directly.
-
imgLoadIcoIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a ICO image directly.
-
imgLoadIo(
Pointer< imageSdlIoStream> src, bool closeio) → Pointer<SdlSurface> - Load an image from an SDL data source into a software surface.
-
imgLoadJpgIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a JPG image directly.
-
imgLoadJxlIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a JXL image directly.
-
imgLoadLbmIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a LBM image directly.
-
imgLoadPcxIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a PCX image directly.
-
imgLoadPngIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a PNG image directly.
-
imgLoadPnmIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a PNM image directly.
-
imgLoadQoiIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a QOI image directly.
-
imgLoadSizedSvgIo(
Pointer< imageSdlIoStream> src, int width, int height) → Pointer<SdlSurface> - Load an SVG image, scaled to a specific size.
-
imgLoadSvgIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a SVG image directly.
-
imgLoadTexture(
Pointer< imageSdlRenderer> renderer, String? file) → Pointer<SdlTexture> - Load an image from a filesystem path into a GPU texture.
-
imgLoadTextureIo(
Pointer< imageSdlRenderer> renderer, Pointer<SdlIoStream> src, bool closeio) → Pointer<SdlTexture> - Load an image from an SDL data source into a GPU texture.
-
imgLoadTextureTypedIo(
Pointer< imageSdlRenderer> renderer, Pointer<SdlIoStream> src, bool closeio, String? type) → Pointer<SdlTexture> - Load an image from an SDL data source into a GPU texture.
-
imgLoadTgaIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a TGA image directly.
-
imgLoadTifIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a TIFF image directly.
-
imgLoadTypedIo(
Pointer< imageSdlIoStream> src, bool closeio, String? type) → Pointer<SdlSurface> - Load an image from an SDL data source into a software surface.
-
imgLoadWebpAnimationIo(
Pointer< imageSdlIoStream> src) → Pointer<ImgAnimation> - Load a WEBP animation directly.
-
imgLoadWebpIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a WEBP image directly.
-
imgLoadXcfIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a XCF image directly.
-
imgLoadXpmIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a XPM image directly.
-
imgLoadXvIo(
Pointer< imageSdlIoStream> src) → Pointer<SdlSurface> - Load a XV image directly.
-
imgReadXpmFromArray(
Pointer< imagePointer< xpm) → Pointer<Int8> >SdlSurface> - Load an XPM image from a memory array.
-
imgReadXpmFromArrayToRgb888(
Pointer< imagePointer< xpm) → Pointer<Int8> >SdlSurface> - Load an XPM image from a memory array.
-
imgResetAnimationDecoder(
Pointer< imageImgAnimationDecoder> decoder) → bool - Reset an animation decoder.
-
imgSave(
Pointer< imageSdlSurface> surface, String? file) → bool - Save an SDL_Surface into an image file.
-
imgSaveAvif(
Pointer< imageSdlSurface> surface, String? file, int quality) → bool - Save an SDL_Surface into a AVIF image file.
-
imgSaveAvifIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio, int quality) → bool - Save an SDL_Surface into AVIF image data, via an SDL_IOStream.
-
imgSaveBmp(
Pointer< imageSdlSurface> surface, String? file) → bool - Save an SDL_Surface into a BMP image file.
-
imgSaveBmpIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio) → bool - Save an SDL_Surface into BMP image data, via an SDL_IOStream.
-
imgSaveGif(
Pointer< imageSdlSurface> surface, String? file) → bool - Save an SDL_Surface into a GIF image file.
-
imgSaveGifIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio) → bool - Save an SDL_Surface into GIF image data, via an SDL_IOStream.
-
imgSaveJpg(
Pointer< imageSdlSurface> surface, String? file, int quality) → bool - Save an SDL_Surface into a JPEG image file.
-
imgSaveJpgIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio, int quality) → bool - Save an SDL_Surface into JPEG image data, via an SDL_IOStream.
-
imgSavePng(
Pointer< imageSdlSurface> surface, String? file) → bool - Save an SDL_Surface into a PNG image file.
-
imgSavePngIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio) → bool - Save an SDL_Surface into PNG image data, via an SDL_IOStream.
-
imgSaveTga(
Pointer< imageSdlSurface> surface, String? file) → bool - Save an SDL_Surface into a TGA image file.
-
imgSaveTgaIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio) → bool - Save an SDL_Surface into TGA image data, via an SDL_IOStream.
-
imgSaveTypedIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio, String? type) → bool - Save an SDL_Surface into formatted image data, via an SDL_IOStream.
-
imgSaveWebp(
Pointer< imageSdlSurface> surface, String? file, double quality) → bool - Save an SDL_Surface into a WEBP image file.
-
imgSaveWebpIo(
Pointer< imageSdlSurface> surface, Pointer<SdlIoStream> dst, bool closeio, double quality) → bool - Save an SDL_Surface into WEBP image data, via an SDL_IOStream.
-
imgVersion(
) → int image - This function gets the version of the dynamically linked SDL_image library.