Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
SetPixelData Method
See Also 
Leadtools Namespace > RasterImage Class : SetPixelData Method



row
The row number of the pixel.
column
The column number of the pixel.
data
Buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
row
The row number of the pixel.
column
The column number of the pixel.
data
Buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
Changes the data of the specified pixel.

Syntax

Visual Basic (Declaration) 
Public Sub SetPixelData( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal data() As Byte _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim data() As Byte
 
instance.SetPixelData(row, column, data)
C# 
public void SetPixelData( 
   int row,
   int column,
   byte[] data
)
C++/CLI 
public:
void SetPixelData( 
   int row,
   int column,
   array<byte>^ data
) 

Parameters

row
The row number of the pixel.
column
The column number of the pixel.
data
Buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.

Example

For an example, refer to GetPixelData

Remarks

This method should be called only for 8, 16, 24, 32, 48 and 64-bit images. For more information, refer to GetPixelData.

No transformations are performed on the pixel data.

For more information, refer to Introduction to Image Processing With LEADTOOLS.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also