Class CGImage

All Implemented Interfaces:
AutoCloseable

public class CGImage
extends CFType
  • Constructor Details

    • CGImage

      protected CGImage()
  • Method Details

    • create

      public static CGImage create​(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGColorSpace space, CGBitmapInfo bitmapInfo, CGDataProvider provider, double[] decode, boolean shouldInterpolate, CGColorRenderingIntent intent)
    • createWithMaskingColors

      public static CGImage createWithMaskingColors​(CGImage image, double[] components)
    • createWithJPEGDataProvider

      public static CGImage createWithJPEGDataProvider​(CGDataProvider source, boolean shouldInterpolate, CGColorRenderingIntent intent)
    • createWithJPEGDataProvider

      public static CGImage createWithJPEGDataProvider​(CGDataProvider source, double[] decode, boolean shouldInterpolate, CGColorRenderingIntent intent)
    • createWithPNGDataProvider

      public static CGImage createWithPNGDataProvider​(CGDataProvider source, boolean shouldInterpolate, CGColorRenderingIntent intent)
    • createWithPNGDataProvider

      public static CGImage createWithPNGDataProvider​(CGDataProvider source, double[] decode, boolean shouldInterpolate, CGColorRenderingIntent intent)
    • createMask

      public static CGImage createMask​(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGDataProvider provider, double[] decode, boolean shouldInterpolate)
    • getClassTypeID

      public static long getClassTypeID()
    • createCopy

      public static CGImage createCopy​(CGImage image)
    • createWithImageInRect

      public static CGImage createWithImageInRect​(CGImage image, CGRect rect)
    • createWithMask

      public static CGImage createWithMask​(CGImage image, CGImage mask)
    • createCopy

      public static CGImage createCopy​(CGImage image, CGColorSpace space)
    • isMask

      public boolean isMask()
    • getWidth

      public long getWidth()
    • getHeight

      public long getHeight()
    • getBitsPerComponent

      public long getBitsPerComponent()
    • getBitsPerPixel

      public long getBitsPerPixel()
    • getBytesPerRow

      public long getBytesPerRow()
    • getColorSpace

      public CGColorSpace getColorSpace()
    • getAlphaInfo

      public CGImageAlphaInfo getAlphaInfo()
    • getDataProvider

      public CGDataProvider getDataProvider()
    • getDecode

      public MachineSizedFloatPtr getDecode()
    • shouldInterpolate

      public boolean shouldInterpolate()
    • getRenderingIntent

      public CGColorRenderingIntent getRenderingIntent()
    • getBitmapInfo

      public CGBitmapInfo getBitmapInfo()
    • getByteOrderInfo

      public CGImageByteOrderInfo getByteOrderInfo()
      Since:
      Available in iOS 12.0 and later.
    • getPixelFormatInfo

      public CGImagePixelFormatInfo getPixelFormatInfo()
      Since:
      Available in iOS 12.0 and later.
    • getUTType

      public String getUTType()
      Since:
      Available in iOS 9.0 and later.