TypeLib Xojo support Plugin |

# RawBitmapConverter.FromPictureTask Method

Creates Task to convert desktop mode Xojo Picture object instance to RawBitmap instance.

shared FromPictureTask(
image as Picture) as EinhugurRuntime.Task

#### Parameters

image
  The picture to be converted.

#### Returns

EinhugurRuntime.Task
  The Task or nil if there was error.

#### Remarks

Note: For this task the Entry code running in Xojo thread space is rather large. See the documentation for TypeLib plugin Task to get detailed explanation of what this means.

Dim t as EinhugurRuntime.Task = RawBitmapConverter.FromPictureTask(myPicture)
t.WaitFor(). // Here we could also use RunAsync and get the result in callback
myBitmap = RawBitmap(t.Result)
This function can throw OutOfMemoryException

#### See Also

RawBitmapConverter Class