CreateCanvasFromRawBlob (open)
Create a canvas from raw image data
Syntax
LOADLIB "wh::graphics/canvas.whlib";
OBJECT FUNCTION CreateCanvasFromRawBlob(BLOB infile, RECORD inputformat)Parameters
BLOB infileData to read
RECORD inputformatINTEGER heightInput height
STRING pixelformatPixelformat (currently RGBA anD ARGB are supported)
BOOLEAN premultipliedIf true, expect the input to have its color channels premultiplied with the alpha channel, and undo that
INTEGER widthInput width
Return value
OBJECT