System::Drawing::Imaging::ImageAttributes::SetColorKey method

ImageAttributes::SetColorKey method

Sets the color range that is made transparent during rendering.

void System::Drawing::Imaging::ImageAttributes::SetColorKey(Color colorLow, Color colorHigh, ColorAdjustType type=ColorAdjustType::Default)
ParameterTypeDescription
colorLowColorThe lowest color-key value.
colorHighColorThe highest color-key value.
typeColorAdjustTypeThe category for which the color key is set.

Remarks

Color keys are currently applied only by supported Graphics::DrawImage overloads. Only the Default and Bitmap adjustment categories affect image rendering.

See Also