IrrCreateImageFromData

section index

## NAME

IrrCreateImageFromData - Create an Irrlicht Image from Memory

## SYNOPSIS

IrrCreateImageFromData(#IRR_ECF_*,ImageWidth.l,ImageHeight.l,*ptr2Image )

## FUNCTION

Creates an Irrlicht Image from memory, allowing you to use Images from PB's CatchImage(), CreateImage() functions.

## INPUTS

#IRR_ECF* | - | Color Format of the Image.
ImageWidth.l | - | Width of the SourceImage
ImageHeight.l | - | Height of the SourceImage
*ImagePointer | - | Pointer to the Image in Memory

## RESULT

Pointer to the newly created Irrlicht Image

## EXAMPLE

       IrrCreateImageFromData(#IRR_ECF_A8R8G8B8,ImageWidth(image),ImageHeight(image),*memPtr)

## NOTES

Possible Color Formats: #IRR_ECF_A1R5G5B5 #IRR_ECF_R5G6B5 #IRR_ECF_R8G8B8 #IRR_ECF_A8R8G8B8 <- PB's Standard ( Alpha, Red, Green, Blue ) -> 8Bit Hex ( 1-255 ) For a practical Usage see Example's 31 and 32