A bitmap image or image mask.
Language
- Swift
- Objective-C
Overview
A bitmap (or sampled) image is a rectangular array of pixels, with each pixel representing a single sample or data point in a source image.
A bitmap image or image mask.
Language
A bitmap (or sampled) image is a rectangular array of pixels, with each pixel representing a single sample or data point in a source image.
init?(width: Int, height: Int, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int, space: CGColorSpace, bitmapInfo: CGBitmapInfo, provider: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)Creates a bitmap image from data supplied by a data provider.
func copy()Creates a copy of a bitmap image.
func copy(colorSpace: CGColorSpace)Create a copy of a bitmap image, replacing its colorspace.
init?(jpegDataProviderSource: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)Creates a bitmap image using JPEG-encoded data supplied by a data provider.
init?(pngDataProviderSource: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool, intent: CGColorRenderingIntent)Creates a bitmap image using PNG-encoded data supplied by a data provider.
func cropping(to: CGRect)Creates a bitmap image using the data contained within a subregion of an existing bitmap image.
func masking(CGImage)Creates a bitmap image from an existing image and an image mask.
func copy(maskingColorComponents: [CGFloat])Creates a bitmap image by masking an existing bitmap image with the provided color values.
init?(maskWidth: Int, height: Int, bitsPerComponent: Int, bitsPerPixel: Int, bytesPerRow: Int, provider: CGDataProvider, decode: UnsafePointer<CGFloat>?, shouldInterpolate: Bool)Creates a bitmap image mask from data supplied by a data provider.
class var typeID: CFTypeIDReturns the type identifier for CGImage objects.
var alphaInfo: CGImageAlphaInfoReturns the alpha channel information for a bitmap image.
var bitmapInfo: CGBitmapInfoReturns the bitmap information for a bitmap image.
var bitsPerComponent: IntReturns the number of bits allocated for a single color component of a bitmap image.
var bitsPerPixel: IntReturns the number of bits allocated for a single pixel in a bitmap image.
var bytesPerRow: IntReturns the number of bytes allocated for a single row of a bitmap image.
var colorSpace: CGColorSpace?Return the color space for a bitmap image.
var dataProvider: CGDataProvider?Returns the data provider for a bitmap image.
var decode: UnsafePointer<CGFloat>?Returns the decode array for a bitmap image.
var height: IntReturns the height of a bitmap image.
var shouldInterpolate: BoolReturns the interpolation setting for a bitmap image.
var renderingIntent: CGColorRenderingIntentReturns the rendering intent setting for a bitmap image.
var width: IntReturns the width of a bitmap image.
var isMask: BoolReturns whether a bitmap image is an image mask.
CGImageA bitmap image or image mask.
CGImageAlphaInfoStorage options for alpha component data.
CGBitmapInfoComponent information for a bitmap image.