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



row
The row number of the pixel.
column
The column number of the pixel.
row
The row number of the pixel.
column
The column number of the pixel.
Returns the color of the specified pixel.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetPixelColor( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Color
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim value As Color
 
value = instance.GetPixelColor(row, column)
C# 
public virtual Color GetPixelColor( 
   int row,
   int column
)
C++/CLI 
public:
virtual Color GetPixelColor( 
   int row,
   int column
) 

Parameters

row
The row number of the pixel.
column
The column number of the pixel.

Return Value

The Color of the specified pixel.

Remarks

You can use the SetPixelColor method to assign the returned value to another pixel.

This method uses image coordinates to specify the pixel. Therefore, you must account for the view perspective of the image. If you specify a pixel that is outside the image or outside the region (if the image has one), this method throws an exception.

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