CIContext_ImageRepresentation.WriteJpegRepresentation 方法

定义

重载

WriteJpegRepresentation(CIContext, CIImage, NSUrl, CGColorSpace, CIImageRepresentationOptions, NSError)
WriteJpegRepresentation(CIContext, CIImage, NSUrl, CGColorSpace, NSDictionary, NSError)

将 的处理This应用于 ,image并将结果的 JPEG 图像写入 。url

WriteJpegRepresentation(CIContext, CIImage, NSUrl, CGColorSpace, CIImageRepresentationOptions, NSError)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool WriteJpegRepresentation (this CoreImage.CIContext This, CoreImage.CIImage image, Foundation.NSUrl url, CoreGraphics.CGColorSpace colorSpace, CoreImage.CIImageRepresentationOptions options, out Foundation.NSError error);
static member WriteJpegRepresentation : CoreImage.CIContext * CoreImage.CIImage * Foundation.NSUrl * CoreGraphics.CGColorSpace * CoreImage.CIImageRepresentationOptions *  -> bool

参数

This
CIContext
image
CIImage
url
NSUrl
colorSpace
CGColorSpace
error
NSError

返回

属性

适用于

WriteJpegRepresentation(CIContext, CIImage, NSUrl, CGColorSpace, NSDictionary, NSError)

将 的处理This应用于 ,image并将结果的 JPEG 图像写入 。url

[Foundation.Export("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool WriteJpegRepresentation (this CoreImage.CIContext This, CoreImage.CIImage image, Foundation.NSUrl url, CoreGraphics.CGColorSpace colorSpace, Foundation.NSDictionary options, out Foundation.NSError error);
static member WriteJpegRepresentation : CoreImage.CIContext * CoreImage.CIImage * Foundation.NSUrl * CoreGraphics.CGColorSpace * Foundation.NSDictionary *  -> bool

参数

This
CIContext

此扩展方法在其上运行的实例。

image
CIImage

要处理的图像输入。

url
NSUrl

应向其写入图像的文件 URL。

colorSpace
CGColorSpace

要使用的颜色空间。

options
NSDictionary

正在处理参数。

error
NSError

内容待定。

此参数可以为 null

返回

属性

适用于