dsdl2.image

Members

Aliases

isAVIF
alias isAVIF = _isType!(IMG_isAVIF, 6)
Undocumented in source.
isBMP
alias isBMP = _isType!IMG_isBMP
Undocumented in source.
isCUR
alias isCUR = _isType!IMG_isCUR
Undocumented in source.
isGIF
alias isGIF = _isType!IMG_isGIF
Undocumented in source.
isICO
alias isICO = _isType!IMG_isICO
Undocumented in source.
isJPG
alias isJPG = _isType!IMG_isJPG
Undocumented in source.
isJXL
alias isJXL = _isType!(IMG_isJXL, 6)
Undocumented in source.
isLBM
alias isLBM = _isType!IMG_isLBM
Undocumented in source.
isPCX
alias isPCX = _isType!IMG_isPCX
Undocumented in source.
isPNG
alias isPNG = _isType!IMG_isPNG
Undocumented in source.
isPNM
alias isPNM = _isType!IMG_isPNM
Undocumented in source.
isQOI
alias isQOI = _isType!(IMG_isQOI, 6)
Undocumented in source.
isSVG
alias isSVG = _isType!(IMG_isSVG, 0, 2)
Undocumented in source.
isTIF
alias isTIF = _isType!IMG_isTIF
Undocumented in source.
isWEBP
alias isWEBP = _isType!IMG_isWEBP
Undocumented in source.
isXCF
alias isXCF = _isType!IMG_isXCF
Undocumented in source.
isXPM
alias isXPM = _isType!IMG_isXPM
Undocumented in source.
isXV
alias isXV = _isType!IMG_isXV
Undocumented in source.
loadAVIFRaw
alias loadAVIFRaw = _loadTypeRaw!(IMG_LoadAVIF_RW, 6)
Undocumented in source.
loadBMPRaw
alias loadBMPRaw = _loadTypeRaw!IMG_LoadBMP_RW
Undocumented in source.
loadCURRaw
alias loadCURRaw = _loadTypeRaw!IMG_LoadCUR_RW
Undocumented in source.
loadGIFRaw
alias loadGIFRaw = _loadTypeRaw!IMG_LoadGIF_RW
Undocumented in source.
loadICORaw
alias loadICORaw = _loadTypeRaw!IMG_LoadICO_RW
Undocumented in source.
loadJPGRaw
alias loadJPGRaw = _loadTypeRaw!IMG_LoadJPG_RW
Undocumented in source.
loadJXLRaw
alias loadJXLRaw = _loadTypeRaw!(IMG_LoadJXL_RW, 6)
Undocumented in source.
loadLBRaw
alias loadLBRaw = _loadTypeRaw!IMG_LoadLBM_RW
Undocumented in source.
loadPCXRaw
alias loadPCXRaw = _loadTypeRaw!IMG_LoadPCX_RW
Undocumented in source.
loadPNGRaw
alias loadPNGRaw = _loadTypeRaw!IMG_LoadPNG_RW
Undocumented in source.
loadPNMRaw
alias loadPNMRaw = _loadTypeRaw!IMG_LoadPNM_RW
Undocumented in source.
loadQOIRaw
alias loadQOIRaw = _loadTypeRaw!(IMG_LoadQOI_RW, 6)
Undocumented in source.
loadSVGRaw
alias loadSVGRaw = _loadTypeRaw!(IMG_LoadSVG_RW, 0, 2)
Undocumented in source.
loadTIFRaw
alias loadTIFRaw = _loadTypeRaw!IMG_LoadTIF_RW
Undocumented in source.
loadWEBPRaw
alias loadWEBPRaw = _loadTypeRaw!IMG_LoadWEBP_RW
Undocumented in source.
loadXCFRaw
alias loadXCFRaw = _loadTypeRaw!IMG_LoadXCF_RW
Undocumented in source.
loadXPMRaw
alias loadXPMRaw = _loadTypeRaw!IMG_LoadXPM_RW
Undocumented in source.
loadXVRaw
alias loadXVRaw = _loadTypeRaw!IMG_LoadXV_RW
Undocumented in source.

Classes

Animation
class Animation

D class that wraps IMG_Animation (from SDL_image 2.6) storing multiple dsdl2.Surfaces of an animation

Functions

_isType
bool _isType(void[] data)
Undocumented in source.
_loadTypeRaw
Surface _loadTypeRaw(void[] data)
Undocumented in source.
getVersion
Version getVersion()

Wraps IMG_Linked_version which gets the version of the linked SDL2_image library

init
void init(bool jpg, bool png, bool tif, bool webp, bool jxl, bool avif, bool everything)

Wraps IMG_Init which initializes selected SDL2_image image format subsystems

load
Surface load(string file)

Wraps IMG_Load which loads an image from a filesystem path into a software dsdl2.Surface

loadAnimation
Animation loadAnimation(string file)

Wraps IMG_LoadAnimation (from SDL_image 2.6) which loads an animation from a filesystem path into an dsdl2.image.Animation

loadAnimationRaw
Animation loadAnimationRaw(void[] data)

Wraps IMG_LoadAnimation_RW (from SDL_image 2.6) which loads an animation from a data buffer into a dsdl2.image.Animation

loadAnimationTypedRaw
Animation loadAnimationTypedRaw(void[] data, string type)

Wraps IMG_LoadAnimationTyped_RW (from SDL_image 2.6) which loads a typed image from a data buffer into a dsdl2.image.Animation

loadGIFAnimationRaw
Animation loadGIFAnimationRaw(void[] data)

Wraps IMG_LoadGIFAnimation_RW (from SDL_image 2.6) which loads a dsdl2.image.Animation from a buffer of animated GIF file format

loadRaw
Surface loadRaw(void[] data)

Wraps IMG_Load_RW which loads an image from a data buffer into a software dsdl2.Surface

loadRaw
Surface loadRaw(void[] data, string type)

Wraps IMG_LoadTyped_RW which loads a typed image from a data buffer into a software dsdl2.Surface

loadSO
void loadSO(string libName)

Loads the SDL2_image shared dynamic library, which wraps bindbc-sdl's loadSDLImage function

loadSizedSVGRaw
Surface loadSizedSVGRaw(void[] data, uint[2] size)

Wraps IMG_LoadSizedSVG_RW (from SDL_image 2.6) which loads a dsdl2.Surface image from a buffer of SVG file format, while providing the desired flattened size of the vector image

loadTexture
Texture loadTexture(Renderer renderer, string file)

Wraps IMG_LoadTexture which loads an image from a filesystem path into a hardware dsdl2.Texture

loadTextureRaw
Texture loadTextureRaw(Renderer renderer, void[] data)

Wraps IMG_LoadTexture_RW which loads an image from a data buffer into a hardware dsdl2.Texture

loadTextureRaw
Texture loadTextureRaw(Renderer renderer, void[] data, string type)

Wraps IMG_LoadTextureTyped_RW which loads a typed image from a data buffer into a hardware dsdl2.Texture

quit
void quit()

Wraps IMG_Quit which entirely deinitializes SDL2_image

saveJPG
void saveJPG(Surface surface, string file, ubyte quality)

Wraps IMG_SaveJPG (from SDL_image 2.0.2) which saves a dsdl2.Surface image into a JPG file in the filesystem

saveJPGRaw
void[] saveJPGRaw(Surface surface, ubyte quality)

Wraps IMG_SaveJPG_RW (from SDL_image 2.0.2) which saves a dsdl2.Surface image into a buffer of JPG file format

savePNG
void savePNG(Surface surface, string file)

Wraps IMG_SavePNG which saves a dsdl2.Surface image into a PNG file in the filesystem

savePNGRaw
void[] savePNGRaw(Surface surface)

Wraps IMG_SavePNG_RW which saves a dsdl2.Surface image into a buffer of PNG file format

Meta

Authors

Avaxar <avaxar@nekkl.org>