Tao.DevIl SDK Documentation

Il.ilTexImage Method 

Any current image data is destroyed by ilTexImage and replaced by a new image with the attributes specified. The new image data has undefined values. To set the new image data to a certain value, use ilClearImage or ilClearImageTo.

[Visual Basic]
Public Shared Function ilTexImage( _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal Depth As Integer, _
   ByVal numChannels As Byte, _
   ByVal Format As Integer, _
   ByVal Type As Integer, _
   ByVal Data As IntPtr _
) As Boolean
[C#]
public static bool ilTexImage(
   int Width,
   int Height,
   int Depth,
   byte numChannels,
   int Format,
   int Type,
   IntPtr Data
);

Parameters

Width
Specifies the new image width. This cannot be 0.
Height
Specifies the new image height. This cannot be 0.
Depth
Specifies the new image depth. Anything greater than 1 will make the image 3d. This cannot be 0.
numChannels
Specifies the new channels. Common values are 3 and 4.
Format
Specifies the data format this image has. For a list of values this can be, see the See Also section.
Type
Specifies the data format this image has. For a list of values this can be, see the See Also section.
Data
Specifies data that should be copied to the new image. If this parameter is NULL, no data is copied, and the new image data consists of undefined values.

Return Value

See Also

Il Class | Tao.DevIl Namespace