次の方法で共有


2.2.3.2 BrightnessContrastEffect Object

The BrightnessContrastEffect object specifies an expansion or contraction of the lightest and darkest areas of an image.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

BrightnessLevel

ContrastLevel

BrightnessLevel (4 bytes): A signed integer that specifies the brightness level. This value MUST be in the range -255 through 255, with effects as follows:

Value

Meaning

-255 ≤ value < 0

As the value decreases, the brightness of the image SHOULD decrease.

0

A value of 0 specifies that the brightness MUST NOT change.

0 < value ≤ 255

As the value increases, the brightness of the image SHOULD increase.

ContrastLevel (4 bytes): A signed integer that specifies the contrast level. This value MUST be in the range -100 through 100, with effects as follows:

Value

Meaning

-100 ≤ value < 0

As the value decreases, the contrast of the image SHOULD decrease.

0

A value of 0 specifies that the contrast MUST NOT change.

0 < value ≤ 100

As the value increases, the contrast of the image SHOULD increase.

Bitmap images are specified by EmfPlusBitmap objects (section 2.2.2.2).

See section 2.2.3 for the specification of additional image effects parameter objects.