LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

SetPixelData(Int32,Int32,IntPtr,Int32) Method






The zero-based row number of the pixel.
The zero-based column number of the pixel.
Pointer to an unmanaged memory buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
Size of the data unmanaged memory buffer.
Changes the data of the specified pixel by copying from an unmanaged memory buffer. .NET support WinRT support
Syntax
public void SetPixelData( 
   int row,
   int column,
   IntPtr data,
   int dataSize
)
'Declaration
 
Public Overloads Sub SetPixelData( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal data As IntPtr, _
   ByVal dataSize As Integer _
) 
'Usage
 
Dim instance As RasterImage
Dim row As Integer
Dim column As Integer
Dim data As IntPtr
Dim dataSize As Integer
 
instance.SetPixelData(row, column, data, dataSize)
public void SetPixelData( 
   int row,
   int column,
   IntPtr data,
   int dataSize
)
 function Leadtools.RasterImage.SetPixelData(Int32,Int32,IntPtr,Int32)( 
   row ,
   column ,
   data ,
   dataSize 
)
public:
void SetPixelData( 
   int row,
   int column,
   IntPtr data,
   int dataSize
) 

Parameters

row
The zero-based row number of the pixel.
column
The zero-based column number of the pixel.
data
Pointer to an unmanaged memory buffer that contains the pixel data to set. This buffer should contain ((BitsPerPixel + 7) / 8) bytes.
dataSize
Size of the data unmanaged memory buffer.
Remarks

No transformations are performed on the pixel data.

This method should be called only for 8, 16, 24, 32, 48 and 64-bit images.

Use the GetPixelData(Int32,Int32,IntPtr,Int32) method to get data of a specified pixel.

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 GetPixelData(Int32,Int32,IntPtr,Int32).
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
Overload List
BitsPerPixel

 

 


Products | Support | Contact Us | Copyright Notices

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