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



row
The row number of the pixel.
column
The column number of the pixel.
clr
The Color to assign to the pixel.
row
The row number of the pixel.
column
The column number of the pixel.
clr
The Color to assign to the pixel.
Changes the color value of the specified pixel.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetPixelColor( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal clr As Color _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim clr As Color
 
instance.SetPixelColor(row, column, clr)
C# 
public virtual void SetPixelColor( 
   int row,
   int column,
   Color clr
)
C++/CLI 
public:
virtual void SetPixelColor( 
   int row,
   int column,
   Color clr
) 

Parameters

row
The row number of the pixel.
column
The column number of the pixel.
clr
The Color to assign to the pixel.

Example

For an example, refer to GetPixelColor

Remarks

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