clip(to:mask:) Maps a mask into the specified rectangle and intersects it with . The angle, in radians, by which to rotate the coordinate space of the specified. Declaration. func UIGraphicsGetCurrentContext() -> CGContext? func UIGraphicsPushContext(CGContext). Makes the specified graphics context the current.
|Published (Last):||14 February 2006|
|PDF File Size:||11.89 Mb|
|ePub File Size:||5.24 Mb|
|Price:||Free* [*Free Regsitration Required]|
CGAffine Transform Returns an affine transform that maps user space coordinates to device space coordinates. CGFloat Changes the scale of the user coordinate system in a context.
Sets the clipping path to the intersection of the current clipping path with the region defined by an array of rectangles.
Saving and Restoring the Current Graphics State
Int, bits Per Component: At any time there is the notion of the current context. A mutable graphics path: An immutable graphics path: Interpolations used by the image Interpolation property. Drawing Gradients and Shadings.
Topics Creating Bitmap Graphics Contexts.
If the value of a source sample in the image mask is Sthen the corresponding point in the current clipping area is multiplied by an alpha value of 1—S. I have a roundrect figure, and a rect image. Managing a Graphics Context. Getting Information About a Context. Refdrence contexts are maintained on a stack.
CGPoint Draws the contents of a layer object at the specified point.
Working with Transparency Layers. Examining the Current Graphics Path.
Creates a new graphics context from the specified Core Graphics context and the initial flipped state. CGRect Returns the smallest rectangle that contains the current path. Managing the Graphics State.
CGInterpolation Quality Returns the current level of interpolation quality for a graphics context. Int Displays an array of glyphs at a position you specify.
See Also 2D Drawing. Unsafe Mutable Raw Pointer, flipped: Maps a mask into the specified rectangle and intersects it with the current clipping area of the graphics context. Sign up using Email and Password. Sets the clipping path to the intersection of the current clipping path with the area defined by the specified rectangle. If the mask parameter is an image mask, then Core Graphics clips in a manner identical to the behavior seen with the draw in: Int Displays a character array at the current text position, a point specified by the current text matrix.
CGContext Reference | ios Tutorial
If the mask parameter is an image, then mask acts like an alpha mask and is blended with the current clipping area. CGRect Draws the contents of a refetence object into the specified rectangle.
Instantiates and returns a new graphics context using the supplied NSBitmap Image Rep object as the context destination. Int Displays a character string at a position you specify. The NSGraphics Context class is an abstract superclass for destination-specific graphics contexts.
Instantiates and returns an instance of NSGraphics Context using the specified attributes. Starts a new page in a page-based graphics context.