ICustomImageSource.ProvideBuffer Method

Provide an IBuffer sufficiently sized to hold an image of the specified size.

Namespace: Lumia.Imaging.Custom
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

function ProvideBuffer(imageSize);

Parameters

imageSize
Type: Windows.Foundation.Size
The size of the image.

Return Value

Type: IBuffer
An IBuffer of length 4 * imageSize.Width * imageSize.Height bytes.

A CustomImageSourceAdapter will call this before rendering if the size has changed since the last call.

After the next call to Process, this buffer is expected to contain the image pixels.

Lumia Imaging SDK

Supported in: 2.0
Show: