Function _IrrCreateImage

au3Irr2

au3Irr2 Function Reference

_IrrCreateImage

Creates a blank image that does not use video memory.

#Include <au3Irrlicht2.au3>
_IrrCreateImage($i_XSize, $i_YSize, $i_ColorFormat)

 

Parameters

$i_XSize Width of the texture.
$i_XSize Width of the texture.
$i_ColorFormat The format of the texture can be one of the following:
$ECF_A1R5G5B5 - 16 bit color format used by the software driver, and thus preferred by all other irrlicht engine video drivers.
$ECF_R5G6B5 - Standard 16 bit color format.
$ECF_R8G8B8 - 24 bit color, no alpha channel, but 8 bit for red, green and blue.
$ECF_A8R8G8B8 - Default 32 bit color format. 8 bits are used for every component: red, green, blue and alpha.

 

Return Value

Success: Handle of the newly created device dependend irrlicht image object
Failure: False and @error 1

 

Remarks

This images can not be used to texture 3D objects!
Instead, they can be used to supply a heightmap to a terrain or other similar CPU based operations.

 

Related

_IrrLockImage, _IrrUnlockImage