'Declaration
Public Function DisplayFromRawBits( _ ByVal Width As Integer, _ ByVal Height As Integer, _ ByVal Stride As Integer, _ ByVal PixelFormat As PixelFormat, _ ByVal Bits As IntPtr _ ) As GdPictureStatus
public GdPictureStatus DisplayFromRawBits( int Width, int Height, int Stride, PixelFormat PixelFormat, IntPtr Bits )
public function DisplayFromRawBits( Width: Integer; Height: Integer; Stride: Integer; PixelFormat: PixelFormat; Bits: IntPtr ): GdPictureStatus;
public function DisplayFromRawBits( Width : int, Height : int, Stride : int, PixelFormat : PixelFormat, Bits : IntPtr ) : GdPictureStatus;
public: GdPictureStatus DisplayFromRawBits( int Width, int Height, int Stride, PixelFormat PixelFormat, IntPtr Bits )
public: GdPictureStatus DisplayFromRawBits( int Width, int Height, int Stride, PixelFormat PixelFormat, IntPtr Bits )
Parameters
- Width
- Specifies the width of the defined raw bitmap, in pixels.
- Height
- Specifies the height of the defined raw bitmap, in pixels.
- Stride
- Specifies the byte offset between the beginning of one scan line and the next scan line. This is usually (but not necessarily) the number of bytes in the pixel format (for example, 2 for 16 bits per pixel) multiplied by the width of the bitmap. The value passed to this parameter must be a multiple of four.
- PixelFormat
- A member of the PixelFormat enumeration. Specifies the pixel format of the defined raw bitmap.
- Bits
- A pointer to an array of bytes that contains the pixel data of the source image. This pointer must be properly initialized and it must be disposed of by the user as well. Warning: Do not remove the raw bitmap from the memory until you close the displayed document.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.