WrappedImageFromGrey8Pixels Method

CVB.Net Documentation
Wraps, without copying, the given Mono8 pixel buffer in a Image.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static WrappedImage FromGrey8Pixels(
	IntPtr buffer,
	int bufferSize,
	int width,
	int height
)

Parameters

buffer
Type: SystemIntPtr
Pointer to the start of the pixel buffer.
bufferSize
Type: SystemInt32
Size of the buffer in bytes.
width
Type: SystemInt32
Width of the image in pixels.
height
Type: SystemInt32
Height of the image in pixels.

Return Value

Type: WrappedImage
Newly created image.
Remarks

This method does not add memory pressure as the memory is managed elsewhere.
See Also

Reference