Brief introduction
Role
- Draw
- Drawing: lines \ triangles \ rectangles \ Circles \ Arcs, etc.
- Draw text
- Draw \ Generate picture (image)
- Read \ Generate PDF
- \ crop a picture
- Custom UI controls (typically controls with more complex internal structures)
- Most of the controls in Uikit are drawn by the system
- Matrix operation (causes all paths in the drawing to the drawing to be changed)
- Scaling
- Rotating
- Translation
Brief introduction
- Quartz2d is part of the core graphic framework, which is a two-dimensional drawing engine that is directed to layer (layers), typically gets the context in the-drawrect: method, draws the content that needs to be drawn into the graphics context, renders the layer to the control, and finally closes the graphics context.
- -(void) DrawRect: (cgrect) Rect, the method will only be called once when the interface is about to be displayed, to call the redraw method if called (void) Setneedsdisplay
Common drawing operations
---restore content ends---
Brief introduction
Role
- Draw
- Drawing: lines \ triangles \ rectangles \ Circles \ Arcs, etc.
- Draw text
- Draw \ Generate picture (image)
- Read \ Generate PDF
- \ crop a picture
- Custom UI controls (typically controls with more complex internal structures)
- Most of the controls in Uikit are drawn by the system
- Matrix operation (causes all paths in the drawing to the drawing to be changed)
- Scaling
- Rotating
- Translation
Brief introduction
- Quartz2d is part of the core graphic framework, which is a two-dimensional drawing engine that is directed to layer (layers), typically gets the context in the-drawrect: method, draws the content that needs to be drawn into the graphics context, renders the layer to the control, and finally closes the graphics context.
- -(void) DrawRect: (cgrect) Rect, the method will only be called once when the interface is about to be displayed, to call the redraw method if called (void) Setneedsdisplay
Common drawing operations
oc-8.quartz2d Core points