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



row
The number of the row to update. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to update. The first column offset is 0, and the last column offset is 1 less than the image width.
buffer
Buffer containing the image data.
bufferIndex
0-based index into the buffer. This is the start location of output data.
bufferCount
Number of bytes to copy to the buffer.
row
The number of the row to update. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to update. The first column offset is 0, and the last column offset is 1 less than the image width.
buffer
Buffer containing the image data.
bufferIndex
0-based index into the buffer. This is the start location of output data.
bufferCount
Number of bytes to copy to the buffer.
Copies a row of image data from a buffer to this RasterImage.

Syntax

Visual Basic (Declaration) 
Public Overridable Function SetRowColumn( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal buffer() As Byte, _
   ByVal bufferIndex As Integer, _
   ByVal bufferCount As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim buffer() As Byte
Dim bufferIndex As Integer
Dim bufferCount As Integer
Dim value As Integer
 
value = instance.SetRowColumn(row, column, buffer, bufferIndex, bufferCount)
C# 
public virtual int SetRowColumn( 
   int row,
   int column,
   byte[] buffer,
   int bufferIndex,
   int bufferCount
)
C++/CLI 
public:
virtual int SetRowColumn( 
   int row,
   int column,
   array<byte>^ buffer,
   int bufferIndex,
   int bufferCount
) 

Parameters

row
The number of the row to update. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to update. The first column offset is 0, and the last column offset is 1 less than the image width.
buffer
Buffer containing the image data.
bufferIndex
0-based index into the buffer. This is the start location of output data.
bufferCount
Number of bytes to copy to the buffer.

Return Value

The number of bytes copied.

Example

For an example, refer to GetRowColumn

Remarks

The data is copied exactly as it is stored in the buffer.

By using this low-level method to update any part of a row, you can write a procedure that updates a single pixel or a rectangular area within the image.

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