module SDL::IMG
Defined in:
image.crClass Method Summary
-
.bmp?(path)
Returns true if the image at path is a BMP file.
-
.cur?(path)
Returns true if the image at path is a CUR file.
-
.gif?(path)
Returns true if the image at path is a GIF file.
-
.ico?(path)
Returns true if the image at path is a ICO file.
- .init(flags : Init)
-
.jpg?(path)
Returns true if the image at path is a JPG file.
-
.lbm?(path)
Returns true if the image at path is a LBM file.
-
.load(path, type : Type | Nil = nil)
Loads the image from path using the optional type hint as a
SDL::Surface
. -
.load(path, renderer : SDL::Renderer, type : Type | Nil = nil)
Loads the image from path using the optional type hint as a
SDL::Texture
for renderer. -
.load_bmp(path)
Loads the BMP image from path as a
SDL::Surface
. -
.load_cur(path)
Loads the CUR image from path as a
SDL::Surface
. -
.load_gif(path)
Loads the GIF image from path as a
SDL::Surface
. -
.load_ico(path)
Loads the ICO image from path as a
SDL::Surface
. -
.load_jpg(path)
Loads the JPG image from path as a
SDL::Surface
. -
.load_lbm(path)
Loads the LBM image from path as a
SDL::Surface
. -
.load_pcx(path)
Loads the PCX image from path as a
SDL::Surface
. -
.load_png(path)
Loads the PNG image from path as a
SDL::Surface
. -
.load_pnm(path)
Loads the PNM image from path as a
SDL::Surface
. -
.load_tga(path)
Loads the TGA image from path as a
SDL::Surface
. -
.load_tif(path)
Loads the TIF image from path as a
SDL::Surface
. -
.load_webp(path)
Loads the WEBP image from path as a
SDL::Surface
. -
.load_xcf(path)
Loads the XCF image from path as a
SDL::Surface
. -
.load_xpm(path)
Loads the XPM image from path as a
SDL::Surface
. -
.load_xv(path)
Loads the XV image from path as a
SDL::Surface
. -
.pcx?(path)
Returns true if the image at path is a PCX file.
-
.png?(path)
Returns true if the image at path is a PNG file.
-
.pnm?(path)
Returns true if the image at path is a PNM file.
- .quit
-
.tga?(path)
Returns true if the image at path is a TGA file.
-
.tif?(path)
Returns true if the image at path is a TIF file.
-
.webp?(path)
Returns true if the image at path is a WEBP file.
-
.xcf?(path)
Returns true if the image at path is a XCF file.
-
.xpm?(path)
Returns true if the image at path is a XPM file.
-
.xv?(path)
Returns true if the image at path is a XV file.
Class Method Detail
Loads the image from path using the optional type hint as a
SDL::Surface
.
Loads the image from path using the optional type hint as a
SDL::Texture
for renderer.