Einhugur macOS Bridge plugin.

NSImage.GetCGImageOfSize Method

Gets representation of given Size and returns it as EinhugurMacOSBridge.CGImage.

GetCGImageOfSize(
   width as Integer,
   height as Integer) as EinhugurMacOSBridge.CGImage

Parameters

width
Width of the requested CGImage.
height
Height of the requested CGImage

Returns

EinhugurMacOSBridge.CGImage

Remarks

This function does not interpolate so if you ask for size 128 x 128 and it does not exist then you might get 256 x 256.

To get interpolation when size does not exist then you could for example use the ToPicture function.

See Also

NSImage Class