Upravit

Sdílet prostřednictvím


CoreGraphics Namespace

The CoreGraphics namespace provides access to a C-based low-level 2D graphics API.

Classes

CGBitmapContext

CGContext backed by an in-memory bitmap.

CGColor

Color structure.

CGColorConversionInfo
CGColorConversionOptions
CGColorConverter

Opaque type that Core Graphics uses to convert colors between color spaces.

CGColorSpace

Colorspace, determines how Quartz interprets color information.

CGColorSpaceNames

Provides string constants whose values are known color spaces.

CGContext

Graphics context and primitives to draw in them.

CGContextPDF

PDF Rendering CGContext class. Use this class to create a CGContext that will output the results to a PDF file.

CGDataConsumer

Data sink for CGContextPDF or CGImageDestination to store data on.

CGDataProvider

A class that wraps a data source and exposes it to the CGImage class.

CGDisplay
CGEvent
CGEventSource
CGFont

Font support.

CGFunction

A callback function to be used with various N:CoreGraphics functions.

CGGradient

Gradient definitions.

CGImage

Represents bitmap images and bitmap masks.

CGImageProperties

Properties of bitmap images.

CGImagePropertiesExif

Standard Exif metadata of an image.

CGImagePropertiesGps

Location properties associated with an image.

CGImagePropertiesIptc

Properties with IPTC metadata in an image.

CGImagePropertiesJfif

Properties associated with JFIF bitmap images.

CGImagePropertiesPng

Properties associated with PNG bitmap images.

CGImagePropertiesTiff

Properties associated with TIFF images.

CGLayer

A hardware accelerated context.

CGPath

A drawing path is made up of lines, arcs, beziers that can be used to paint.

CGPattern

A pattern to draw in a CGContext.

CGPDFArray

Represents a PDF array

CGPDFContentStream

Class that gets PDF resources as an object or stream.

CGPDFDictionary

Represents a PDF Dictionary.

CGPDFDocument

PDF Document.

CGPDFInfo

Auxiliary parameters for constructing a CGContextPDF.

CGPDFObject

Class that represents various objects in a PDF document.

CGPDFOperatorTable

Class for storing callbacks for processing PDF documents.

CGPDFOutlineOptions
CGPDFPage

A PDF Page in a PDF Document.

CGPDFPageInfo

Specifies various boxes for the BeginPage(CGPDFPageInfo) method.

CGPDFScanner

Class that enables app developers to parse values from a PDF stream.

CGPDFStream

A PDF Stream.

CGShading

A type that represents a Quartz shading.

RectangleFExtensions

Extensions to the RectangleF class that are useful when using CoreGraphics.

Structs

CGAffineTransform

2D Affine transformation used to convert between coordinate spaces.

CGColorConverterTriple

Contains the rendering intent, color space, and transform for a color conversion.

CGEventTapInformation
CGPathElement

An individual element on a CGPath.

CGPoint

Structure defining a 2D point.

CGRect

Structure defining a rectangle in terms of location and size.

CGSize

Structure containing height and width values.

CGVector

A mathematical vector, with value equality implemented.

GColorConversionInfoTriple

Enums

CGBitmapFlags

Bitmap encoding.

CGBlendMode

Blending mode used during composition.

CGCaptureOptions
CGColorConversionInfoTransformType
CGColorConverterTransformType

Enumerates the relationships between color space transform starting and end points.

CGColorRenderingIntent

Determines how Quartz maps colors from the source color space to the gamut of the destination.

CGColorSpaceModel

Color space model.

CGEventFilterMask
CGEventFlags
CGEventMask
CGEventMouseSubtype
CGEventSourceStateID
CGEventSuppressionState
CGEventTapLocation
CGEventTapOptions
CGEventTapPlacement
CGEventType
CGGradientDrawingOptions

Drawing location for gradients.

CGImageAlphaInfo

Specifies the bitmap layout information.

CGImageByteOrderInfo
CGImageColorModel

An enumeration of valid color models.

CGImagePixelFormatInfo
CGInterpolationQuality

Quality of interpolation for drawing images.

CGLineCap

Style for line caps.

CGLineJoin

Join type for drawing operations.

CGMouseButton
CGPathDrawingMode

Drawing mode.

CGPathElementType

The type of an element in a CGPath.

CGPatternTiling

Pattern styling style.

CGPDFAccessPermissions
CGPDFBox

Type of box in a PDF document.

CGPDFDataFormat

Enumerates values that indicate the data format of a PDF.

CGPDFObjectType

Enumerates the various types of values that are found in a PDF document.

CGRectEdge

Coordinates used to establish the edge in RectangleFExtensions.Divide.

CGScrollEventUnit
CGTextDrawingMode

Text drawing mode used by Quartz.

CGTextEncoding

Text encoding, this enumeration is deprecated, use CoreText APIs instead.

CGWindowImageOption
CGWindowListOption
MatrixOrder

Delegates

CGEvent.CGEventTapCallback
CGFunction.CGFunctionEvaluate

A delegate used to specify the callback function of a CGFunction.

CGPath.ApplierFunction

A function that can make changes to a CGPathElement.

CGPattern.DrawPattern

Callback signature used to draw patterns on the screen.

CGPDFArray.ApplyCallback
CGPDFDictionary.ApplyCallback

Remarks

This namespace contains a binding to the two-dimensional, bitmap and vector graphic APIs. To learn more about the capabilities of MonoTouch.CoreGraphics you can read Apple's Quartz 2D Programming Guide.

Many graphics use-cases can be addressed using higher-level APIs such as those provided in N:UIKit, GLKit, and SpriteKit. However, some Core Graphics classes such as CGLayer, CGContext, and CGImage are not uncommonly seen in general UI tasks. In such situations, the Core Graphics class will often have more flexibility in terms of lower-level manipulation but requires more attention from the developer in terms of resource and state management.