Class CGBitmapContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CGBitmapContext
    extends CGContext
    • Constructor Detail

      • CGBitmapContext

        public CGBitmapContext()
    • Method Detail

      • create

        public static CGBitmapContext create​(long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGBitmapContext create​(byte[] data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGImageAlphaInfo alphaInfo)
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGBitmapContext create​(byte[] data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGBitmapContext create​(short[] data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGBitmapContext create​(int[] data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Since:
        Available in iOS 2.0 and later.
      • create

        @Deprecated
        public static CGBitmapContext create​(org.robovm.rt.bro.ptr.IntPtr data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Deprecated.
        kept for compatibility only, use ones that accept arrays
        Since:
        Available in iOS 4.0 and later.
      • create

        @Deprecated
        public static CGBitmapContext create​(org.robovm.rt.bro.ptr.IntPtr data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo,
                                             CGBitmapContext.ReleaseDataCallback releaseCallback)
        Deprecated.
        kept for compatibility only, use ones that accept arrays
        Since:
        Available in iOS 4.0 and later.
      • dispose

        protected void dispose​(boolean finalizing)
        Overrides:
        dispose in class CFType
      • create

        public static CGBitmapContext create​(long data,
                                             long width,
                                             long height,
                                             long bitsPerComponent,
                                             long bytesPerRow,
                                             CGColorSpace space,
                                             CGBitmapInfo bitmapInfo)
        Since:
        Available in iOS 2.0 and later.
      • getData

        public long getData()
        Since:
        Available in iOS 2.0 and later.
      • getWidth

        public long getWidth()
        Since:
        Available in iOS 2.0 and later.
      • getHeight

        public long getHeight()
        Since:
        Available in iOS 2.0 and later.
      • getBitsPerComponent

        public long getBitsPerComponent()
        Since:
        Available in iOS 2.0 and later.
      • getBitsPerPixel

        public long getBitsPerPixel()
        Since:
        Available in iOS 2.0 and later.
      • getBytesPerRow

        public long getBytesPerRow()
        Since:
        Available in iOS 2.0 and later.
      • getColorSpace

        public CGColorSpace getColorSpace()
        Since:
        Available in iOS 2.0 and later.
      • getAlphaInfo

        public CGImageAlphaInfo getAlphaInfo()
        Since:
        Available in iOS 2.0 and later.
      • getBitmapInfo

        public CGBitmapInfo getBitmapInfo()
        Since:
        Available in iOS 2.0 and later.
      • toImage

        public CGImage toImage()
        Since:
        Available in iOS 2.0 and later.