Please enable JavaScript to view this site.

uEye .NET Manual 4.97

The PixelFormat class provides methods for setting the color mode to be used when image data are saved or displayed by the graphics card. For this purpose, the allocated image memory must be large enough to accommodate the data with the selected color mode. When images are transferred directly to the graphics card memory, make sure that the display settings match the color mode settings. Otherwise, the images will be displayed with altered colors or are not clearly visible.

hint_info

Note on display modes

This class is only supported in the bitmap (DIB) display mode.

Use Render() to display other color formats in Direct3D mode.

UI-1007XS color modes

The UI-1007XS camera performs color conversion internally and currently supports the following color formats:

uEye.Defines.ColorMode.BGR8Packed

uEye.Defines.ColorMode.BGRA8Packed

uEye.Defines.ColorMode.CBYCRYPacked

uEye.Defines.ColorMode.Jpeg

hint_info

Note on bit depth

Color formats with a bit depth of more than 8 bits per channel are only supported by GigE uEye and USB 3 uEye camera models and USB cameras (UI-214x and UI-228x models). Using color formats with higher bit depth increases the bandwidth used by a camera.

hint_info

Note on RGB15/16

For the RGB16 and RGB15 data formats, the MSBs of the internal 8-bit R, G and B colors are used.

Methods

Method

Description

Get

Returns the current setting.

GetBitsPerPixel

Returns the bits per pixel for the current color mode.

GetBytesPerPixel

Returns the bytes per pixel for the current color mode.

Set

Sets the color mode.