ChaiLove API  0.28.0
Public Member Functions
love::image Class Reference

Provides an interface to decode encoded image data. More...

Public Member Functions

ImagenewImageData (const std::string &filename)
 Creates a new ImageData object. More...
 

Detailed Description

Provides an interface to decode encoded image data.

Member Function Documentation

◆ newImageData()

Image* love::image::newImageData ( const std::string &  filename)

Creates a new ImageData object.

Example

var bear = love.image.newImageData("bear.png")
Parameters
filenameThe filename of the image file.
Returns
The new ImageData object.