module SDL::IMG

Defined in:

image.cr

Class Method Summary

Class Method Detail

def self.bmp?(path) #

Returns true if the image at path is a BMP file.


[View source]
def self.cur?(path) #

Returns true if the image at path is a CUR file.


[View source]
def self.gif?(path) #

Returns true if the image at path is a GIF file.


[View source]
def self.ico?(path) #

Returns true if the image at path is a ICO file.


[View source]
def self.init(flags : Init) #

[View source]
def self.jpg?(path) #

Returns true if the image at path is a JPG file.


[View source]
def self.lbm?(path) #

Returns true if the image at path is a LBM file.


[View source]
def self.load(path, type : Type | Nil = nil) #

Loads the image from path using the optional type hint as a SDL::Surface.


[View source]
def self.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.


[View source]
def self.load_bmp(path) #

Loads the BMP image from path as a SDL::Surface.


[View source]
def self.load_cur(path) #

Loads the CUR image from path as a SDL::Surface.


[View source]
def self.load_gif(path) #

Loads the GIF image from path as a SDL::Surface.


[View source]
def self.load_ico(path) #

Loads the ICO image from path as a SDL::Surface.


[View source]
def self.load_jpg(path) #

Loads the JPG image from path as a SDL::Surface.


[View source]
def self.load_lbm(path) #

Loads the LBM image from path as a SDL::Surface.


[View source]
def self.load_pcx(path) #

Loads the PCX image from path as a SDL::Surface.


[View source]
def self.load_png(path) #

Loads the PNG image from path as a SDL::Surface.


[View source]
def self.load_pnm(path) #

Loads the PNM image from path as a SDL::Surface.


[View source]
def self.load_tga(path) #

Loads the TGA image from path as a SDL::Surface.


[View source]
def self.load_tif(path) #

Loads the TIF image from path as a SDL::Surface.


[View source]
def self.load_webp(path) #

Loads the WEBP image from path as a SDL::Surface.


[View source]
def self.load_xcf(path) #

Loads the XCF image from path as a SDL::Surface.


[View source]
def self.load_xpm(path) #

Loads the XPM image from path as a SDL::Surface.


[View source]
def self.load_xv(path) #

Loads the XV image from path as a SDL::Surface.


[View source]
def self.pcx?(path) #

Returns true if the image at path is a PCX file.


[View source]
def self.png?(path) #

Returns true if the image at path is a PNG file.


[View source]
def self.pnm?(path) #

Returns true if the image at path is a PNM file.


[View source]
def self.quit #

[View source]
def self.tga?(path) #

Returns true if the image at path is a TGA file.


[View source]
def self.tif?(path) #

Returns true if the image at path is a TIF file.


[View source]
def self.webp?(path) #

Returns true if the image at path is a WEBP file.


[View source]
def self.xcf?(path) #

Returns true if the image at path is a XCF file.


[View source]
def self.xpm?(path) #

Returns true if the image at path is a XPM file.


[View source]
def self.xv?(path) #

Returns true if the image at path is a XV file.


[View source]