TypeLib Xojo support Plugin |

# RawBitmapConverter.ToPicture Method

Converts RawBitmap to desktop mode Xojo Picture object.

shared ToPicture(
image as RawBitmap,
favorAlphaChannelOverMask as Boolean) as Picture

#### Parameters

image
  The RawBitmap to be converted.
favorAlphaChannelOverMask
  If set to true then alpha channel will be used instead of a mask if and only if the RawBitmap had alpha channel. If there was no alpha channel in the RawBitmap then the returned image will have neither mask nor alpha channel. Getting mask is the is the default behaviour as pictures with Alpha channels in Xojo loose accuracy due to pre-multiplied alpha channel.

#### Returns

Picture
  The converted RawBitmap as Picture or nil if there was error.

#### Remarks

Dim myPicture as Picture = RawBitmapConverter.ToPicture(myRawBitmap,false)

#### See Also

RawBitmapConverter Class