BitsPerPixel Property (ILEADRasterDlgClr)

Visual Basic example

Visual C++ example

 

Syntax

short BitsPerPixel;

Overview

Refer to Using Imaging Common Dialogs

Remarks

Gets or sets the number of bits per pixel in the Color Resolution dialog box.

Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits. The following are valid values:

Value

Meaning

1

1 bit per pixel in the resultant bitmap

2

2 bits per pixel in the resultant bitmap

3

3 bits per pixel in the resultant bitmap

4

4 bits per pixel in the resultant bitmap

5

5 bits per pixel in the resultant bitmap

6

6 bits per pixel in the resultant bitmap

7

7 bits per pixel in the resultant bitmap

8

8 bits per pixel in the resultant bitmap

12

12 bits per pixel in the resultant bitmap

16

16 bits per pixel in the resultant bitmap

24

24 bits per pixel in the resultant bitmap

32

32 bits per pixel in the resultant bitmap

48

48 bits per pixel in the resultant bitmap

64

64 bits per pixel in the resultant bitmap

See Also

Elements

ShowColorResDlg method, PaletteFlags property, DitherFlags property, UIFlags property