CGImage

A bitmap image or image mask.

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.

Symbols

Creating Bitmap Images

Getting the CFType ID

class var type​ID:​ CFType​ID

Returns the type identifier for CGImage objects.

Getting Information About an Image

var alpha​Info:​ CGImage​Alpha​Info

Returns the alpha channel information for a bitmap image.

var bitmap​Info:​ CGBitmap​Info

Returns the bitmap information for a bitmap image.

var bits​Per​Component:​ Int

Returns the number of bits allocated for a single color component of a bitmap image.

var bits​Per​Pixel:​ Int

Returns the number of bits allocated for a single pixel in a bitmap image.

var bytes​Per​Row:​ Int

Returns the number of bytes allocated for a single row of a bitmap image.

var color​Space:​ CGColor​Space?

Return the color space for a bitmap image.

var data​Provider:​ CGData​Provider?

Returns the data provider for a bitmap image.

var decode:​ Unsafe​Pointer<CGFloat>?

Returns the decode array for a bitmap image.

var height:​ Int

Returns the height of a bitmap image.

var should​Interpolate:​ Bool

Returns the interpolation setting for a bitmap image.

var rendering​Intent:​ CGColor​Rendering​Intent

Returns the rendering intent setting for a bitmap image.

var width:​ Int

Returns the width of a bitmap image.

var is​Mask:​ Bool

Returns whether a bitmap image is an image mask.

Data Types

CGImage

A bitmap image or image mask.

Constants

CGImage​Alpha​Info

Storage options for alpha component data.

CGBitmap​Info

Component information for a bitmap image.

See Also

Related Documentation