Tao.DevIl SDK Documentation

Il.ilSetPixels Method 

ilCopyPixels has very simple behaviour. It simply copies a block of pixels from the Data buffer to the current image's data. XOff, YOff and ZOff can be used to skip a certain number of pixels in each respective direction. If XOff + Width, YOff + Height and/or ZOff + Depth is greater than the current image's width, height or depth, only the current image's width, height or depth number of pixels will be copied to the current image's data buffer.

[Visual Basic]
Public Shared Sub ilSetPixels( _
   ByVal XOff As Integer, _
   ByVal YOff As Integer, _
   ByVal ZOff As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal Depth As Integer, _
   ByVal Format As Integer, _
   ByVal Type As Integer, _
   ByVal Data As IntPtr _
)
[C#]
public static void ilSetPixels(
   int XOff,
   int YOff,
   int ZOff,
   int Width,
   int Height,
   int Depth,
   int Format,
   int Type,
   IntPtr Data
);

Parameters

XOff
Where to begin copying pixels to in the x direction.
YOff
Where to begin copying pixels to in the y direction.
ZOff
Where to begin copying pixels to in the z direction.
Width
How many pixels to copy in the x direction.
Height
How many pixels to copy in the y direction.
Depth
How many pixels to copy in the z direction.
Format
The format the input is.
Type
The type the input is.
Data
User-defined buffer to copy the image data to.

See Also

Il Class | Tao.DevIl Namespace