Language

ICIImageProcessorOutput.GetTemporaryPixelBuffer Method

Definition

Gets a temporary pixel buffer for use as scratch storage during image processing.

[Foundation.Export("temporaryPixelBufferWithIdentifier:format:width:height:attributes:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreVideo.CVPixelBuffer? GetTemporaryPixelBuffer(string identifier, CoreVideo.CVPixelFormatType format, UIntPtr width, UIntPtr height, Foundation.NSDictionary? attributes);
[<Foundation.Export("temporaryPixelBufferWithIdentifier:format:width:height:attributes:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetTemporaryPixelBuffer : string * CoreVideo.CVPixelFormatType * unativeint * unativeint * Foundation.NSDictionary -> CoreVideo.CVPixelBuffer
override this.GetTemporaryPixelBuffer : string * CoreVideo.CVPixelFormatType * unativeint * unativeint * Foundation.NSDictionary -> CoreVideo.CVPixelBuffer

Parameters

identifier
String

A name that uniquely identifies the temporary pixel buffer during the processor invocation.

format
CVPixelFormatType

The pixel format for the pixel buffer.

width
UIntPtr

unativeint

The width of the pixel buffer, in pixels.

height
UIntPtr

unativeint

The height of the pixel buffer, in pixels.

attributes
NSDictionary

Optional pixel buffer creation attributes.

Returns

A temporary pixel buffer, or null if one could not be created.

Attributes

Remarks

The returned pixel buffer is valid only for the duration of the current image processor invocation.

Applies to