BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_ChannelSetColors Method BASS.NET API for the Un4seen BASS Audio Library
Sets new values to color controls.

Namespace: Un4seen.Bass.AddOn.DShow
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("xVideo.dll", EntryPoint = "xVideo_ChannelSetColors", 
	CharSet = CharSet.Auto)]
public static bool BASS_DSHOW_ChannelSetColors(
	int handle,
	BASSDSHOWColorControl id,
	BASS_DSHOW_VIDEOCOLORS colors
)

Parameters

handle
Type: SystemInt32
The video channel handle (as returned by BASS_DSHOW_StreamCreateFile(String, Int32, IntPtr, BASSFlag)).
id
Type: Un4seen.Bass.AddOn.DShowBASSDSHOWColorControl
Any combination of the following flags (see BASSDSHOWColorControl):
BASS_DSHOW_ControlBrightnessUse this to set the brightness value.
BASS_DSHOW_ControlContrastUse this to set the contrast value.
BASS_DSHOW_ControlHueUse this to set the hue value.
BASS_DSHOW_ControlSaturationUse this to set the saturation value.
colors
Type: Un4seen.Bass.AddOn.DShowBASS_DSHOW_VIDEOCOLORS
An instance of the BASS_DSHOW_VIDEOCOLORS structure to apply the color changes from.

Return Value

Type: Boolean
If an error occurred then is returned, else is returned (use BASS_DSHOW_ErrorGetCode to get the error code).
Remarks

This function was tested successfully on VMR9. It may work on other renderers and also will depend on the hardware capabilities.
See Also

Reference