ICustomEffect.ProvideTargetBuffer 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
Syntax
IBuffer ProvideTargetBuffer(
Size imageSize
)
'Declaration
Function ProvideTargetBuffer (
imageSize As Size
) As IBuffer
IBuffer^ ProvideTargetBuffer(
[InAttribute] Size imageSize
)
function ProvideTargetBuffer(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.
Remarks
A CustomEffectAdapter 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 processed target pixels.
The buffer returned may be the same as the source buffer. This allows the effect to edit pixels "in place".
Version Information
Lumia Imaging SDK
Supported in: 2.0