Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

SetColorMode

uEye ActiveX Manual Version 4.00

SetColorMode

Syntax

LONG SetColorMode (LONG nMode)

Description

SetColorMode() sets the color mode of the image data when displayed by the VGA board or stored in PC memory. If stored in PC memory it is important that the allocated image memory provides sufficient space to hold the requested image completely. A 24 bit color image requires three times as much memory as an 8 bit monochrome image. When accessing the image data, it is important to know how the memory is arranged in each of the color modes. The image memory properties can be obtained using the function InquireImageMem().

Parameters

Mode

Color mode to be set

For a list of all available color formats and the associated input parameters, see the "Appendix: Color and memory formats"chapter in the uEye manual.

IS_CM_BAYER_RG16

Raw Bayer (16)

IS_CM_BAYER_RG12

Raw Bayer (12)

IS_CM_BAYER_RG8

Raw Bayer (8)

IS_CM_MONO16

Greyscale (16)

IS_CM_MONO12

Greyscale (12)

IS_CM_MONO8

Greyscale (8)

IS_CM_RGB10V2_PACKED

RGB30 (10 10 10)

IS_CM_RGBA8_PACKED

RGB32 (8 8 8)

IS_CM_RGBY8_PACKED

RGBY (8 8 8 8)

IS_CM_RGB8_PACKED

RGB24 (8 8 8)

IS_CM_BGR10V2_PACKED

BGR30 (10 10 10)

IS_CM_BGRA8_PACKED

BGR32 (8 8 8)

IS_CM_BGR8_PACKED

BGR24 (8 8 8)

IS_CM_BGRY8_PACKED

BGRY (8 8 8)

IS_CM_BGR565_PACKED

BGR16 (5 6 5)

IS_CM_BGR555_PACKED

BGR15 (5 5 5)

IS_CM_UYVY_PACKED

YUV 4:2:2 (8 8)

IS_CM_UYVY_MONO_PACKED

YUV 4:2:2 (8 8)

IS_CM_UYVY_BAYER_PACKED

YUV 4:2:2 (8 8)

IS_CM_CBYCRY_PACKED

YCbCr 4:2:2 (8 8)

Return values

IS_SUCCESS

Function executed successfully

IS_NO_SUCCESS

General error message

Related functions

GetColorMode()


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com