GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / SetPixelArrayByte Method
GdPicture image identifier.
Array of pixel data.
The left destination pixel of the area.
The top destination pixel of the area.
The width of the destination area in pixel.
The height of the destination area in pixel.





In This Topic
SetPixelArrayByte Method (GdPictureImaging)
In This Topic
Changes the pixel values contained into an area of a GdPicture image from an array which contains each each Blue, Green, Red and Alpha components of pixel.
Syntax
'Declaration
 
Public Function SetPixelArrayByte( _
   ByVal ImageID As Integer, _
   ByVal Data() As Byte, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer _
) As GdPictureStatus
public GdPictureStatus SetPixelArrayByte( 
   int ImageID,
   byte[] Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height
)
public function SetPixelArrayByte( 
    ImageID: Integer;
    Data: Bytearray of;
    DstLeft: Integer;
    DstTop: Integer;
    Width: Integer;
    Height: Integer
): GdPictureStatus; 
public function SetPixelArrayByte( 
   ImageID : int,
   Data : byte[],
   DstLeft : int,
   DstTop : int,
   Width : int,
   Height : int
) : GdPictureStatus;
public: GdPictureStatus SetPixelArrayByte( 
   int ImageID,
   byte[]* Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height
) 
public:
GdPictureStatus SetPixelArrayByte( 
   int ImageID,
   array<byte>^ Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height
) 

Parameters

ImageID
GdPicture image identifier.
Data
Array of pixel data.
DstLeft
The left destination pixel of the area.
DstTop
The top destination pixel of the area.
Width
The width of the destination area in pixel.
Height
The height of the destination area in pixel.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

The method automatically converts all images PixelFormat to PixelFormat.Format32bppArgb.

See Also