共用方式為


CIContext_ImageRepresentation.GetJpegRepresentation 方法

定義

多載

GetJpegRepresentation(CIContext, CIImage, CGColorSpace, CIImageRepresentationOptions)
GetJpegRepresentation(CIContext, CIImage, CGColorSpace, NSDictionary)

將 的處理 This 套用至 image ,並傳回結果的 JPEG 影像。

GetJpegRepresentation(CIContext, CIImage, CGColorSpace, CIImageRepresentationOptions)

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

參數

This
CIContext
image
CIImage
colorSpace
CGColorSpace

傳回

屬性

適用於

GetJpegRepresentation(CIContext, CIImage, CGColorSpace, NSDictionary)

將 的處理 This 套用至 image ,並傳回結果的 JPEG 影像。

[Foundation.Export("JPEGRepresentationOfImage:colorSpace:options:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSData GetJpegRepresentation (this CoreImage.CIContext This, CoreImage.CIImage image, CoreGraphics.CGColorSpace colorSpace, Foundation.NSDictionary options);
static member GetJpegRepresentation : CoreImage.CIContext * CoreImage.CIImage * CoreGraphics.CGColorSpace * Foundation.NSDictionary -> Foundation.NSData

參數

This
CIContext

這個擴充方法運作所在的 實例。

image
CIImage

要處理的影像輸入。

colorSpace
CGColorSpace

要使用的色彩空間。

options
NSDictionary

處理引數。

傳回

屬性

適用於