Share via


CGContextPDF 类

定义

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

public class CGContextPDF : CoreGraphics.CGContext
type CGContextPDF = class
    inherit CGContext
继承
CGContextPDF

注解

可以使用所有常规的 CGContext 方法(结果),这些命令将转换为 PDF 命令并存储在 PDF 文件中,而不是呈现到屏幕或图像中。

构造函数

CGContextPDF(CGDataConsumer)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

CGContextPDF(CGDataConsumer, CGPDFInfo)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

CGContextPDF(CGDataConsumer, CGRect)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

CGContextPDF(CGDataConsumer, CGRect, CGPDFInfo)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

CGContextPDF(NSUrl)

创建一个新的 CGContext,用于将其命令记录到 PDF 文件中,其 mediaBox 维度存储在指定 URL 中。

CGContextPDF(NSUrl, CGPDFInfo)

创建一个新的 CGContext,用于将其命令记录到指定 URL 中的 PDF 文件中。

CGContextPDF(NSUrl, CGRect)

创建一个新的 CGContext,用于将其命令记录到 PDF 文件中,其 mediaBox 维度存储在指定 URL 中。

CGContextPDF(NSUrl, CGRect, CGPDFInfo)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

属性

Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 CGContext)
InterpolationQuality

内插图像时使用的质量级别的提示 (例如缩放) 时。

(继承自 CGContext)
TextMatrix

定义文本空间和用户空间之间的转换。 独立于 CGContext状态。

(继承自 CGContext)
TextPosition

要绘制文本的位置(以用户空间坐标为单位)。

(继承自 CGContext)

方法

AddArc(nfloat, nfloat, nfloat, nfloat, nfloat, Boolean)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
AddArcToPoint(nfloat, nfloat, nfloat, nfloat, nfloat)

向当前路径添加一个弧线。

(继承自 CGContext)
AddCurveToPoint(nfloat, nfloat, nfloat, nfloat, nfloat, nfloat)

使用指定的控制参数在当前点添加三次方贝塞尔曲线。

(继承自 CGContext)
AddDestination(String, CGPoint)

在指定位置添加目标名称。

AddDocumentMetadata(NSData)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

AddEllipseInRect(CGRect)

添加一个适合指定 rect的椭圆。

(继承自 CGContext)
AddLines(CGPoint[])

将给定行添加到当前路径。

(继承自 CGContext)
AddLineToPoint(nfloat, nfloat)

从当前点追加一条线, (看到 GetPathCurrentPoint()) 到用户空间中的指定坐标。

(继承自 CGContext)
AddPath(CGPath)

将指定路径添加到当前路径。

(继承自 CGContext)
AddQuadCurveToPoint(nfloat, nfloat, nfloat, nfloat)

将二次贝塞尔曲线添加到当前路径。

(继承自 CGContext)
AddRect(CGRect)

将矩形路径添加到当前路径。

(继承自 CGContext)
AddRects(CGRect[])

将矩形路径数组添加到当前路径。

(继承自 CGContext)
AsBitmapContext()

将 CGContext 强制转换为 CGBitmapContext。

(继承自 CGContext)
BeginPage(CGPDFPageInfo)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

BeginPage(Nullable<CGRect>)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
BeginPath()

在图形上下文中启动新路径。

(继承自 CGContext)
BeginTransparencyLayer(CGRect, NSDictionary)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
BeginTransparencyLayer(NSDictionary)

使用 EndTransparencyLayer(),将操作包含在完全透明的层上。

(继承自 CGContext)
ClearRect(CGRect)

以透明方式绘制矩形。

(继承自 CGContext)
Clip()

将图形上下文的当前路径设置为剪切路径。

(继承自 CGContext)
ClipToMask(CGRect, CGImage)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ClipToRect(CGRect)

将剪裁路径修改为当前路径和提供的矩形的交集。

(继承自 CGContext)
ClipToRects(CGRect[])

将当前剪裁路径修改为当前剪切路径的 insersection 以及由提供的矩形指定的区域。

(继承自 CGContext)
Close()

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

ClosePath()

关闭并完成当前路径。

(继承自 CGContext)
ConcatCTM(CGAffineTransform)

将指定的 transform 连接到当前转换矩阵。

(继承自 CGContext)
ContextFillRects(CGRect[])

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ConvertPointToUserSpace(CGPoint)

将点从设备空间坐标转换为用户空间坐标。

(继承自 CGContext)
ConvertRectToDeviceSpace(CGRect)

将矩形从用户空间坐标转换为设备空间坐标。

(继承自 CGContext)
ConvertRectToUserSpace(CGRect)

将矩形从设备空间坐标转换为用户空间坐标。

(继承自 CGContext)
ConvertSizeToDeviceSpace(CGSize)

将大小从用户空间坐标转换为设备空间坐标。

(继承自 CGContext)
ConvertSizeToUserSpace(CGSize)

将大小从设备空间坐标转换为用户空间坐标。

(继承自 CGContext)
CopyPath()

返回当前上下文中当前路径的深层副本。

(继承自 CGContext)
Dispose()

释放 CGContext 对象使用的资源。

(继承自 CGContext)
Dispose(Boolean)

释放 CGContext PDF 对象使用的资源。

DrawImage(CGRect, CGImage)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
DrawLayer(CGLayer, CGPoint)

在指定点将一个层绘制到图形上下文中。

(继承自 CGContext)
DrawLayer(CGLayer, CGRect)

将一个层绘制到由指定矩形绑定的图形上下文中。

(继承自 CGContext)
DrawLinearGradient(CGGradient, CGPoint, CGPoint, CGGradientDrawingOptions)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
DrawPath(CGPathDrawingMode)

绘制 的 CGContext当前路径。

(继承自 CGContext)
DrawPDFPage(CGPDFPage)

呈现指定的 PDF page

(继承自 CGContext)
DrawRadialGradient(CGGradient, CGPoint, nfloat, CGPoint, nfloat, CGGradientDrawingOptions)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
DrawShading(CGShading)

呈现指定的 shading

(继承自 CGContext)
DrawTiledImage(CGRect, CGImage)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
EndPage()

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

EndTransparencyLayer()

指示透明层的末尾。

(继承自 CGContext)
EOClip()

使用Even-Odd规则修改当前剪辑路径。

(继承自 CGContext)
EOFillPath()

使用Even-Odd规则填充当前路径。

(继承自 CGContext)
FillEllipseInRect(CGRect)

绘制 定义的 rect椭圆。 之后,将重置当前路径。

(继承自 CGContext)
FillPath()

使用非零缠绕规则填充当前路径。

(继承自 CGContext)
FillRect(CGRect)

绘制指定的 rect

(继承自 CGContext)
Flush()

强制呈现所有挂起的绘图。

(继承自 CGContext)
GetClipBoundingBox()

当前剪切路径的边界框。

(继承自 CGContext)
GetCTM()

检索当前上下文转换矩阵。

(继承自 CGContext)
GetPathBoundingBox()

返回当前路径的边界框。

(继承自 CGContext)
GetPathCurrentPoint()

路径中的 CGContext当前点。

(继承自 CGContext)
GetUserSpaceToDeviceSpaceTransform()

CGAffineTransform 用户空间坐标映射到设备空间坐标的 。

(继承自 CGContext)
IsPathEmpty()

当前路径是否包含任何子路径。

(继承自 CGContext)
MoveTo(nfloat, nfloat)

从指定位置处开始子路径。

(继承自 CGContext)
PathContainsPoint(CGPoint, CGPathDrawingMode)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
PointToDeviceSpace(CGPoint)

返回将用户空间转换为设备空间point的新PointF值。

(继承自 CGContext)
ReplacePathWithStrokedPath()

根据笔划参数,将当前路径替换为路径的笔划版本。

(继承自 CGContext)
ResetClip()

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
RestoreState()

将 的状态 CGContext 设置为上次调用 时 SaveState() 的状态。

(继承自 CGContext)
RotateCTM(nfloat)

angle 弧度旋转当前转换矩阵,正值逆时针旋转。

(继承自 CGContext)
SaveState()

存储 的状态 CGContext。 (请参阅RestoreState().)

(继承自 CGContext)
ScaleCTM(nfloat, nfloat)

缩放当前转换矩阵。

(继承自 CGContext)
SelectFont(String, nfloat, CGTextEncoding)

开发人员不应使用此已弃用的方法。 开发人员应改用“CoreText”API。

(继承自 CGContext)
SetAllowsAntialiasing(Boolean)

上下文是否允许抗锯齿。

(继承自 CGContext)
SetAllowsFontSmoothing(Boolean)

上下文是否允许字体平滑。

(继承自 CGContext)
SetAllowsFontSubpixelQuantization(Boolean)

上下文是否允许在子像素位置绘制字形。

(继承自 CGContext)
SetAllowsSubpixelPositioning(Boolean)

上下文是否允许除与像素边界对齐以外的字形。

(继承自 CGContext)
SetAlpha(nfloat)

将绘图的不透明度(在 0.0 (透明) 范围设置为 1.0 (不透明) 。

(继承自 CGContext)
SetBlendMode(CGBlendMode)

指定合成模式。

(继承自 CGContext)
SetCharacterSpacing(nfloat)

在字形之间添加额外的间距。

(继承自 CGContext)
SetDestination(String, CGRect)

如果用户在指定区域中单击或点击,PDF 查看器将跳转到命名目标

SetFillColor(CGColor)

将填充颜色设置为指定的 CGColor

(继承自 CGContext)
SetFillColor(nfloat, nfloat)

将填充颜色设置为灰色级别,范围为 0 (黑色) 到 1 (白色) 。

(继承自 CGContext)
SetFillColor(nfloat, nfloat, nfloat, nfloat)

将填充颜色设置为指定的 RGBA 值。

(继承自 CGContext)
SetFillColor(nfloat, nfloat, nfloat, nfloat, nfloat)

使用 CMYK 颜色空间分量以及 alpha 值设置填充颜色。

(继承自 CGContext)
SetFillColor(nfloat[])

设置填充颜色。 SetFillColorSpace(CGColorSpace) 必须先调用 。

(继承自 CGContext)
SetFillColorSpace(CGColorSpace)

指定要 CGColorSpace 在上下文中使用的 。

(继承自 CGContext)
SetFillPattern(CGPattern, nfloat[])

设置上下文的填充模式。

(继承自 CGContext)
SetFlatness(nfloat)

曲线路径的准确性。

(继承自 CGContext)
SetFont(CGFont)

CGFont设置用于呈现文本的 。

(继承自 CGContext)
SetFontSize(nfloat)

设置用于呈现文本的字体大小。

(继承自 CGContext)
SetLineCap(CGLineCap)

设置行尾的样式。

(继承自 CGContext)
SetLineDash(nfloat, nfloat[])

用于绘制虚线的图案。

(继承自 CGContext)
SetLineDash(nfloat, nfloat[], Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
SetLineJoin(CGLineJoin)

设置行的联接方式。

(继承自 CGContext)
SetLineWidth(nfloat)

设置笔划线的宽度。 线条延伸一半 w 到路径的任一侧。

(继承自 CGContext)
SetMiterLimit(nfloat)

指定连接线的斜接限制。

(继承自 CGContext)
SetPatternPhase(CGSize)

在开始平铺之前转换模式。

(继承自 CGContext)
SetRenderingIntent(CGColorRenderingIntent)

如何处理目标颜色空间以外的颜色。

(继承自 CGContext)
SetShadow(CGSize, nfloat, CGColor)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
SetShouldAntialias(Boolean)

SetAllowsAntialiasing(Boolean) 结合使用以启用或禁用抗锯齿。

(继承自 CGContext)
SetShouldSmoothFonts(Boolean)

SetAllowsFontSmoothing(Boolean) 结合使用以启用或禁用字体平滑。

(继承自 CGContext)
SetShouldSubpixelPositionFonts(Boolean)

SetAllowsSubpixelPositioning(Boolean) 结合使用以启用或禁用像素的字形对齐。

(继承自 CGContext)
SetStrokeColor(CGColor)

设置笔划颜色。

(继承自 CGContext)
SetStrokeColor(nfloat, nfloat)

将笔划颜色设置为灰度值。

(继承自 CGContext)
SetStrokeColor(nfloat, nfloat, nfloat, nfloat)

将笔划颜色设置为 RGBA 颜色。

(继承自 CGContext)
SetStrokeColor(nfloat, nfloat, nfloat, nfloat, nfloat)

将笔划颜色设置为 CMYKA 颜色。

(继承自 CGContext)
SetStrokeColor(nfloat[])

设置笔划颜色。 如果不事先设置颜色空间,此 API 具有未定义的行为。

(继承自 CGContext)
SetStrokeColorSpace(CGColorSpace)

CGColorSpace设置要与 M:CoreGraphics.CGContext.SetStrokeColor (float[]) 一起使用的 。

(继承自 CGContext)
SetStrokePattern(CGPattern, nfloat[])

设置上下文的笔划模式。

(继承自 CGContext)
SetTextDrawingMode(CGTextDrawingMode)

指定应如何呈现字形。

(继承自 CGContext)
SetUrl(NSUrl, CGRect)

将屏幕中的区域与 URL 相关联。 当用户单击或点击该区域时,他将被重定向到其 PDF 查看器上的该 URL。

ShouldSubpixelQuantizeFonts(Boolean)

使用 SetAllowsFontSubpixelQuantization(Boolean),确定是否应在子像素位置绘制字体。

(继承自 CGContext)
ShowGlyphs(UInt16[])

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowGlyphs(UInt16[], Int32)

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowGlyphsAtPoint(nfloat, nfloat, UInt16[])

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowGlyphsAtPoint(nfloat, nfloat, UInt16[], Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowGlyphsAtPositions(UInt16[], CGPoint[], Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowGlyphsWithAdvances(UInt16[], CGSize[], Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowText(Byte[])

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowText(Byte[], Int32)

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowText(String)

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowText(String, Int32)

此方法已弃用,改用 N:CoreText

(继承自 CGContext)
ShowTextAtPoint(nfloat, nfloat, Byte[])

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowTextAtPoint(nfloat, nfloat, Byte[], Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowTextAtPoint(nfloat, nfloat, String)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
ShowTextAtPoint(nfloat, nfloat, String, Int32)

PDF 呈现 CGContext 类。 使用此类创建将结果输出到 PDF 文件的 CGContext。

(继承自 CGContext)
StrokeEllipseInRect(CGRect)

笔划由 rect定义的椭圆。 之后,将重置当前路径。

(继承自 CGContext)
StrokeLineSegments(CGPoint[])

在 中 points笔划由对定义的线条。 之后,将重置当前路径。

(继承自 CGContext)
StrokePath()

笔划当前路径。 之后,将重置当前路径。

(继承自 CGContext)
StrokeRect(CGRect)

笔划指定的 rect。 之后,将重置当前路径。

(继承自 CGContext)
StrokeRectWithWidth(CGRect, nfloat)

笔划 。rect 线的一 width 半延伸到外围的任一 rect 侧。

(继承自 CGContext)
Synchronize()

将 标记为 CGContext 更新。

(继承自 CGContext)
TranslateCTM(nfloat, nfloat)

更改用户坐标系的原点。

(继承自 CGContext)

适用于