TypeLib Xojo support Plugin

RawBitmap.Constructor Constructor

Constructs a RawBitmap with a given color space. This constructor can either take external MemoryBlock or handle allocating the MemoryBlock buffer.

Constructor(
   srcBlock as MemoryBlock,
   width as Integer,
   height as Integer,
   rowBytes as Integer,
   imageFormat as RawBitmapFormat)

Parameters

srcBlock
External memory block containing the picture data. If passing nil here then the constructor will allocated new MemoryBlock of correct size.
width
The width for the Bitmap.
height
The height for the Bitmap.
rowBytes
The number of bytes per row. This value cannot be smaller than width * channels. If this parameter is zero then the constructor will automatically assign rowBytes to value that fits the other parameters.
imageFormat
Format of the color components in the bitmap.

Remarks

This constructor can throw OutOfMemoryException

See Also

RawBitmap Class