共用方式為


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

傳回

屬性

適用於