Einhugur macOS Bridge plugin. |

# VNInstanceMaskObservation.GenerateScaledMaskForImageForInstancesAsCGImage Method

Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.
This version returns the image as CGImage.

GenerateScaledMaskForImageForInstancesAsCGImage(
imageRequestHandler as EinhugurVisionBridge.VNImageRequestHandler,
index as Integer) as EinhugurCoreBridge.CGImage

#### Parameters

imageRequestHandler
  Reference to the imageRequestHandler.
index
  Index of the image to get (zero based).

#### Returns

EinhugurCoreBridge.CGImage
  The returned image as CGImage.

#### Remarks

#### See Also

VNInstanceMaskObservation Class