'Declaration
Public Function CreateGdPictureImageFromRawBits( _ ByVal Width As Integer, _ ByVal Height As Integer, _ ByVal Stride As Integer, _ ByVal PixelFormat As GdPicturePixelFormat, _ ByVal Bits As IntPtr _ ) As Integer
public int CreateGdPictureImageFromRawBits( int Width, int Height, int Stride, GdPicturePixelFormat PixelFormat, IntPtr Bits )
public function CreateGdPictureImageFromRawBits( Width: Integer; Height: Integer; Stride: Integer; PixelFormat: GdPicturePixelFormat; Bits: IntPtr ): Integer;
public function CreateGdPictureImageFromRawBits( Width : int, Height : int, Stride : int, PixelFormat : GdPicturePixelFormat, Bits : IntPtr ) : int;
public: int CreateGdPictureImageFromRawBits( int Width, int Height, int Stride, GdPicturePixelFormat PixelFormat, IntPtr Bits )
public: int CreateGdPictureImageFromRawBits( int Width, int Height, int Stride, GdPicturePixelFormat PixelFormat, IntPtr Bits )
Parameters
- Width
- Specifies the width, in pixels, of the bitmap.
- Height
- Specifies the height, in pixels, of the bitmap.
- Stride
- Specifies the byte offset between the beginning of one scan line and the next. This is usually (but not necessarily) the number of bytes in the pixel format (for example, 2 for 16 bit per pixel) multiplied by the width of the bitmap. The value passed to this parameter must be a multiple of four.
- PixelFormat
- Specifies the pixel format of the bitmap. A member of the PixelFormat enumeration.
- Bits
- Pointer to an array of bytes that contains the pixel data. The caller is responsible for allocating and freeing the block of memory pointed to by this parameter.
Return Value
0: The image could not be created. Use the GetStat() method to determine the reason this method
failed.
Non-zero: GdPicture image identifier. The created image. The ReleaseGdPictureImage() method must be subsequently used to release the image from the memory.