LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

SetPixelColor Method






The zero-based row number of the pixel.
The zero-based column number of the pixel.
The color to assign to the pixel.
Changes the color value of the specified pixel. .NET support Silverlight support WinRT support
Syntax
public void SetPixelColor( 
   int row,
   int column,
   RasterColor color
)
'Declaration
 
Public Sub SetPixelColor( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal color As RasterColor _
) 
'Usage
 
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim color As RasterColor
 
instance.SetPixelColor(row, column, color)
public void SetPixelColor( 
   int row,
   int column,
   RasterColor color
)
 function Leadtools.RasterImage.SetPixelColor( 
   row ,
   column ,
   color 
)
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.
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 alpha values for 32 and 64-bit color images and the alpha value of color is not be used. Instead, use the GetPixel and SetPixel methods.

This method does not support signed images.

For more information, refer to Introduction to Image Processing With LEADTOOLS.

For more information refer to Accounting for View Perspective.

Example
For an example, refer to GetPixelColor.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members
GetPixel Method
SetPixel Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.