Please enable JavaScript to view this site.

uEye .NET Manual 4.97

Class

uEye.Extensions

Accessible

Camera.Memory.ToBitmap

Syntax

uEye.Extensions.ToBitmap(this uEye.Memory memory, int s32MemId, out System.Drawing.Bitmap bitmap)

Description

Returns a bitmap which contains the image. The method uses the already allocated image memory and the image is displayed in the format you specified when allocating the image memory.

Parameter

memory

Image memory

s32MemId

ID of image memory

bitmap

Bitmap with the image. The following color modes are supported in the Bitmap class:

System.Drawing.Imaging.PixelFormat.Format32bppArgb (uEye.Defines.ColorMode.RGBA8Packed/uEye.Defines.ColorMode.BGRA8Packed)

System.Drawing.Imaging.PixelFormat.Format24bppRgb (uEye.Defines.ColorMode.RGB8Packed/uEye.Defines.ColorMode.BGR8Packed)

System.Drawing.Imaging.PixelFormat.Format16bppRgb565 (uEye.Defines.ColorMode.BGR565Packed)

System.Drawing.Imaging.PixelFormat.Format16bppRgb555 (uEye.Defines.ColorMode.BGR5Packed)

System.Drawing.Imaging.PixelFormat.Format8bppIndexed (uEye.Defines.ColorMode.Mono8/uEye.Defines.ColorMode.SensorRaw8)