Einhugur macOS Bridge plugin.

CGImage.FromIntegerPtr Method

Constructs CGImage object from Integer handle coming from declares or 3rd party plugin.

shared FromIntegerPtr(
   imageIntPtr as Integer) as EinhugurMacOSBridge.CGImage

Parameters

imageIntPtr
Integer handle coming from declare or 3rd party plugin that points to live CGImageRef object.

Returns

EinhugurMacOSBridge.CGImage

Remarks

Do not pass integer in here that is not actually CGImage handle, doing so would generate crash.

The CGImage class will handle retaining the object once and releasing once the object once the CGImage class is no longer used.

See Also

CGImage Class