GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / SetPixelArrayByteBGR 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.
Specifies if input pixel are ordered in R-G-B versus in B-G-R.





In This Topic
SetPixelArrayByteBGR 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, and Red components of pixel.
Syntax
'Declaration
 
Public Function SetPixelArrayByteBGR( _
   ByVal ImageID As Integer, _
   ByVal Data() As Byte, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal InputIsRGB As Boolean _
) As GdPictureStatus
public GdPictureStatus SetPixelArrayByteBGR( 
   int ImageID,
   byte[] Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   bool InputIsRGB
)
public function SetPixelArrayByteBGR( 
    ImageID: Integer;
    Data: Bytearray of;
    DstLeft: Integer;
    DstTop: Integer;
    Width: Integer;
    Height: Integer;
    InputIsRGB: Boolean
): GdPictureStatus; 
public function SetPixelArrayByteBGR( 
   ImageID : int,
   Data : byte[],
   DstLeft : int,
   DstTop : int,
   Width : int,
   Height : int,
   InputIsRGB : boolean
) : GdPictureStatus;
public: GdPictureStatus SetPixelArrayByteBGR( 
   int ImageID,
   byte[]* Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   bool InputIsRGB
) 
public:
GdPictureStatus SetPixelArrayByteBGR( 
   int ImageID,
   array<byte>^ Data,
   int DstLeft,
   int DstTop,
   int Width,
   int Height,
   bool InputIsRGB
) 

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.
InputIsRGB
Specifies if input pixel are ordered in R-G-B versus in B-G-R.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

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

See Also