CoreGraphics核心绘图总结


2023年12月29日发(作者:agony aunt)

多条线CGContextAddLines(CGContextRef cg_nullable c, const CGPoint * __nullable points, size_t count)画椭圆CGContextAddEllipseInRect(CGContextRef cg_nullable c, CGRect rect)圆,扇形CGContextAddArc(CGContextRef cg_nullable c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clockwi)画圆弧CGContextAddArcToPoint(CGContextRef cg_nullable c, CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2, CGFloat radius)添加路径CGContextAddPath(CGContextRef cg_nullable c, CGPathRef cg_nullable path)将路径替换为线路径CGContextReplacePathWithStrokedPath(CGContextRef cg_nullable c)判断路径是否为空bool CGContextIsPathEmpty(CGContextRef cg_nullable c)获取路径当前的点CGPoint CGContextGetPathCurrentPoint(CGContextRef cg_nullable c)返回路径的边界框CGRect CGContextGetPathBoundingBox(CGContextRef cg_nullable c)拷贝路径CGPathRef __nullable CGContextCopyPath(CGContextRef cg_nullable c)

点是否包含在路径中bool CGContextPathContainsPoint(CGContextRef cg_nullable c, CGPoint point, CGPathDrawingMode mode)绘制路径CGContextDrawPath(CGContextRef cg_nullable c, CGPathDrawingMode mode)填充路径CGContextFillPath(CGContextRef cg_nullable c)奇偶填充路径CGContextEOFillPath(CGContextRef cg_nullable c)给路径画线CGContextStrokePath(CGContextRef cg_nullable c)填充矩形CGContextFillRect(CGContextRef cg_nullable c, CGRect rect)填充矩形组CGContextFillRects(CGContextRef cg_nullable c, const CGRect * __nullable rects, size_t count)矩形画线CGContextStrokeRect(CGContextRef cg_nullable c, CGRect rect)矩形画线并设置线宽CGContextStrokeRectWithWidth(CGContextRef cg_nullable c, CGRect rect, CGFloat width)清除矩形CGContextClearRect(CGContextRef cg_nullable c, CGRect rect)

CGContextSetFillColorSpace(CGContextRef cg_nullable c, CGColorSpaceRef cg_nullable space)CGContextSetStrokeColorSpace(CGContextRef cg_nullable c, CGColorSpaceRef cg_nullable space)CGContextSetFillColor(CGContextRef cg_nullable c, const CGFloat * cg_nullable components)CGContextSetStrokeColor(CGContextRef cg_nullable c, const CGFloat * cg_nullable components)CGContextSetFillPattern(CGContextRef cg_nullable c, CGPatternRef cg_nullable pattern, const CGFloat * cg_nullable components)CGContextSetStrokePattern(CGContextRef cg_nullable c, CGPatternRef cg_nullable pattern, const CGFloat * cg_nullable components)CGContextSetPatternPhase(CGContextRef cg_nullable c, CGSize phase)CGContextSetGrayFillColor(CGContextRef cg_nullable c, CGFloat gray, CGFloat alpha)CGContextSetGrayStrokeColor(CGContextRef cg_nullable c, CGFloat gray, CGFloat alpha)CGContextSetRGBFillColor(CGContextRef cg_nullable c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha)CGContextSetRGBStrokeColor(CGContextRef cg_nullable c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha)CGContextSetCMYKFillColor(CGContextRef cg_nullable c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha)CGContextSetCMYKStrokeColor(CGContextRef cg_nullable c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha)CGContextSetRenderingIntent(CGContextRef cg_nullable c, CGColorRenderingIntent intent)

CGContextDrawImage(CGContextRef cg_nullable c, CGRect rect, CGImageRef cg_nullable image)CGContextDrawTiledImage(CGContextRef cg_nullable c, CGRect rect, CGImageRef cg_nullable image)CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef cg_nullable c)CGContextSetInterpolationQuality(CGContextRef cg_nullable c, CGInterpolationQuality quality)CGContextSetShadowWithColor(CGContextRef cg_nullable c, CGSize offset, CGFloat blur, CGColorRef __nullable color)CGContextSetShadow(CGContextRef cg_nullable c, CGSize offset, CGFloat blur)CGContextDrawLinearGradient(CGContextRef cg_nullable c, CGGradientRef cg_nullable gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options)CGContextDrawRadialGradient(CGContextRef cg_nullable c, CGGradientRef cg_nullable gradient, CGPoint startCenter, CGFloat startRadius, CGPoint endCenter, CGFloat endRadius, CGGradientDrawingOptions options)CGContextDrawShading(CGContextRef cg_nullable c, cg_nullable CGShadingRef shading)CGContextSetCharacterSpacing(CGContextRef cg_nullable c, CGFloat spacing)CGContextSetTextPosition(CGContextRef cg_nullable c, CGFloat x, CGFloat y)CGPoint CGContextGetTextPosition(CGContextRef cg_nullable c)CGContextSetTextMatrix(CGContextRef cg_nullable c, CGAffineTransform t)CGAffineTransform CGContextGetTextMatrix(CGContextRef cg_nullable c)

CGContextSetTextDrawingMode(CGContextRef cg_nullable c, CGTextDrawingMode mode)CGContextSetFont(CGContextRef cg_nullable c, CGFontRef cg_nullable font)CGContextSetFontSize(CGContextRef cg_nullable c, CGFloat size)CGContextShowGlyphsAtPositions(CGContextRef cg_nullable c, const CGGlyph * cg_nullable glyphs, const CGPoint * cg_nullable Lpositions, size_t count)CGContextDrawPDFPage(CGContextRef cg_nullable c, CGPDFPageRef cg_nullable page)CGContextBeginPage(CGContextRef cg_nullable c, const CGRect * __nullable mediaBox)CGContextEndPage(CGContextRef cg_nullable c)CGContextRef cg_nullable CGContextRetain(CGContextRef cg_nullable c)CGContextRelease(CGContextRef cg_nullable c)CGContextFlush(CGContextRef cg_nullable c)CGContextSynchronize(CGContextRef cg_nullable c)CGContextSetShouldAntialias(CGContextRef cg_nullable c, bool shouldAntialias)CGContextSetAllowsAntialiasing(CGContextRef cg_nullable c, bool allowsAntialiasing)CGContextSetShouldSmoothFonts(CGContextRef cg_nullable c, bool shouldSmoothFonts)CGContextSetAllowsFontSmoothing(CGContextRef cg_nullable c, bool allowsFontSmoothing)

CGContextSetShouldSubpixelPositionFonts( CGContextRef cg_nullable c, bool shouldSubpixelPositionFonts)CGContextSetAllowsFontSubpixelPositioning( CGContextRef cg_nullable c, bool allowsFontSubpixelPositioning)CGContextSetShouldSubpixelQuantizeFonts( CGContextRef cg_nullable c, bool shouldSubpixelQuantizeFonts)CGContextSetAllowsFontSubpixelQuantization( CGContextRef cg_nullable c, bool allowsFontSubpixelQuantization)CGContextBeginTransparencyLayer(CGContextRef cg_nullable c, CFDictionaryRef __nullable auxiliaryInfo)CGContextBeginTransparencyLayerWithRect( CGContextRef cg_nullable c, CGRect rect, CFDictionaryRef __nullable auxInfo)CGContextEndTransparencyLayer(CGContextRef cg_nullable c)CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef cg_nullable c)CGPoint CGContextConvertPointToDeviceSpace(CGContextRef cg_nullable c, CGPoint point)CGPoint CGContextConvertPointToUserSpace(CGContextRef cg_nullable c, CGPoint point)CGSize CGContextConvertSizeToDeviceSpace(CGContextRef cg_nullable c, CGSize size)CGSize CGContextConvertSizeToUserSpace(CGContextRef cg_nullable c, CGSize size)CGRect CGContextConvertRectToDeviceSpace(CGContextRef cg_nullable c, CGRect rect)CGRect CGContextConvertRectToUserSpace(CGContextRef cg_nullable c, CGRect rect)

tableView截图


本文发布于:2024-09-21 22:43:23,感谢您对本站的认可!

本文链接:https://www.17tex.com/fanyi/43885.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:路径   矩形   填充   画线   是否
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议