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




row
The zero-based row number of the pixel.
column
The zero-based column number of the pixel.
color
The color to assign to the pixel.
Changes the color value of the specified pixel.

Syntax

Visual Basic (Declaration) 
Public Sub SetPixelColor( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal color As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim color As RasterColor
 
instance.SetPixelColor(row, column, color)
C# 
public void SetPixelColor( 
   int row,
   int column,
   RasterColor color
)
Managed Extensions for C++ 
public: void SetPixelColor( 
   int row,
   int column,
   RasterColor color
) 
C++/CLI 
public:
void SetPixelColor( 
   int row,
   int column,
   RasterColor color
) 

Parameters

row
The zero-based row number of the pixel.
column
The zero-based column number of the pixel.
color
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.

Use the GetPixelColor method to get the color value of a certain pixel.

This method does not support signed images.

For more information, refer to Processing an Image.

For more information refer to Accounting for View Perspective.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also