Einhugur macOS Bridge plugin.

EinhugurMacOSBridge.CGImage Class (console safe)

Representation of macOS CGImage object.

The object has been wrapped to make it easy to us NSImage with Xojo API’s and Einhugur API’s.

The object can be used by it self, or with CGImage coming from Declare in Xojo, or with CGImage coming from 3rd party plugin (if they can provide Integer based handle to the CGImage).

The object will be automatically released like any other Xojo object. Do not manually use the Release method unless you have done something externally to the CGImage, with other plugin or declares that might call for release.

Object
   CGImage

class EinhugurMacOSBridge.CGImage

Constructors

CGImagePrivate constructor. This class can only be constructed with the Shared methods on the class.

Properties

ColorSpaceReturns info on what kind of colorspace the RawBitmap has. (RGB, Gray, CMYK or UNKNOWN). This can be any value from the RawBitmap.ColorSpaces enum.
DepthReturns the depth per channel of the bitmap.
HandleReturns Integer handle to the native CGImageRef structure.
HasAlphaChannelReturns true if the CGImage has alpha channel, else false.
HeightReturns the height of the Bitmap in pixels.
PixelBytesReturns number of bytes per pixel in the image.
RowBytesReturns the number of bytes in each row of the bitmap.
WidthReturns the width of the Bitmap in pixels.

Methods

DrawDraws the CGImage into Xojo Graphics.
shared FromIntegerPtrConstructs CGImage object from Integer handle coming from declares or 3rd party plugin.
shared FromRawBitmapCreates CGImage from Einhugur RawBitmap object.
GetImageInRectCreates a CGImage bitmap image using the data contained within a subregion of an existing CGImage bitmap image.
ReleaseReleases the CGImage.
RetainRetains the CGImage
ToPictureCreates Xojo picture object from the CGImage.
ToRawBitmapCreates Einhugur RawBitmap from the CGImage

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit

    Unsupported Platforms:

  • MacOS X Carbon
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM