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



row
The number of the row to retrieve. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to retrieve. The first column offset is 0, and the last column offset is 1 less than the image width
buffer
Buffer to hold the image data that this method gets.
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 retrieve. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to retrieve. The first column offset is 0, and the last column offset is 1 less than the image width
buffer
Buffer to hold the image data that this method gets.
bufferIndex
0-based index into the buffer. This is the start location of output data.
bufferCount
Number of bytes to copy to the buffer.
Accepts a column offset to retrieve data from this RasterImage and place it in a buffer.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetRowColumn( _
   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.GetRowColumn(row, column, buffer, bufferIndex, bufferCount)
C# 
public virtual int GetRowColumn( 
   int row,
   int column,
   byte[] buffer,
   int bufferIndex,
   int bufferCount
)
C++/CLI 
public:
virtual int GetRowColumn( 
   int row,
   int column,
   array<byte>^ buffer,
   int bufferIndex,
   int bufferCount
) 

Parameters

row
The number of the row to retrieve. The first row is 0, and the last row is 1 less than the image height.
column
The column offset within the row to retrieve. The first column offset is 0, and the last column offset is 1 less than the image width
buffer
Buffer to hold the image data that this method gets.
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

This example is designed to work with images that have a bottom-left or top-left view perspective. It uses GetRowColumn and SetRowColumn to invert the colors of a rectangle in the upper left part of the displayed image.

Remarks

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

The buffer to which pBuffer points will be filled with uncompressed data.

This method copies image data from the image to a buffer that you specify. The data is copied exactly as it is stored in the image.

Use the BytesPerLine property to determine the byte count of each line. Color order is determined by the RasterImage.Order property.

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