Einhugur macOS Bridge plugin. |
|
CGImage.ToRawBitmap Method
Creates Einhugur RawBitmap from the CGImage

ToRawBitmap(
autoUnpremultiply
as Boolean)
as RawBitmap
Parameters
- autoUnpremultiply
- If set to true then the bitmap will be automatically un-premultiplied if needed. This parameter is optional and is default true. CGImages with alpha channel are premultiplied while the RawBitmap and Einhugur Image processors want them not premultiplied. The RawBitmap can store premultiplied image but cannot do much with it.
Returns
- RawBitmap
- RawBitmap or nil if error.
Remarks
See Also
CGImage Class