Click here to Skip to main content
15,564,312 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionValueMember with sorted ComboBox Pin
Nigel Mackay30-Sep-08 20:16
Nigel Mackay30-Sep-08 20:16 
QuestionAdd 2 number in Crystal Report Pin
tungcan5diop30-Sep-08 18:26
tungcan5diop30-Sep-08 18:26 
AnswerRe: Add 2 number in Crystal Report Pin
TheCardinal30-Sep-08 21:16
TheCardinal30-Sep-08 21:16 
GeneralRe: Add 2 number in Crystal Report Pin
tungcan5diop1-Oct-08 17:19
tungcan5diop1-Oct-08 17:19 
QuestionCustom scrollbar + ownerdraw listview scrolling Pin
Nedim Sabic30-Sep-08 5:04
Nedim Sabic30-Sep-08 5:04 
QuestionRe: Custom scrollbar + ownerdraw listview scrolling Pin
led mike30-Sep-08 5:45
led mike30-Sep-08 5:45 
AnswerRe: Custom scrollbar + ownerdraw listview scrolling Pin
Nedim Sabic30-Sep-08 9:50
Nedim Sabic30-Sep-08 9:50 
QuestionHow to set the Brightness, Color, Contrast of Video using SliderBars or Track Bars ( While Recording) Pin
balaji_vbr30-Sep-08 3:43
balaji_vbr30-Sep-08 3:43 
hello Sir,


This is Balaji.V, Developing Video Application Using WindowsForms, C#.net, For recording video we are using WindowsMedia Encoder 9 series, Encoder for encoding the video. windows Media Player for Playing the video.

I need to change the Brightness, color, Contrast of the video Using Trackbars, when I drag the brightness trackbar control the value of trackbar apply to video, when I drag the color trackbar control the value of trackbar apply to video, similary for contrast

for this iam using DirectX.capture.dll, DshowNet, & the follwing code.

private void trkBrightness_Scroll(object sender, EventArgs e)
{

VideoProcAmp_prop Brightness;
Brightness = capture.Get_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Brightness);
Brightness.lValue = (long)trkBrightness.Value;
capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Brightness,Brightness.lValue);


}

private void trkColor_Scroll(object sender, EventArgs e)
{

VideoProcAmp_prop Saturation;
Saturation = capture.Get_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Saturation);
Saturation.lValue = (long)trkColor.Value;

capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Saturation,Saturation.lValue);


//capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Saturation,64);
//Settings.Default.Color = trkColor.Value;
//Settings.Default.Save();
}

private void trkContrast_Scroll(object sender, EventArgs e)
{

VideoProcAmp_prop Contrast;
Contrast = capture.Get_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Contrast);
Contrast.lValue = (long)trkContrast.Value;

capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Contrast,Contrast.lValue);

//capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Contrast, 64);
//Settings.Default.Contrast = trkContrast.Value;
//Settings.Default.Save();
}


but it is not working, Please give me a solution how can i apply the change made by the trackbar control vaues to the video which is going to record & recording.

Thanks & Regards
Balaji.V
QuestionPrint Window Pin
PaulaM30-Sep-08 1:11
PaulaM30-Sep-08 1:11 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili30-Sep-08 1:52
mentorGiorgi Dalakishvili30-Sep-08 1:52 
QuestionFill Combo Box with Database Names? Pin
astrovirgin30-Sep-08 0:36
astrovirgin30-Sep-08 0:36 
AnswerRe: Fill Combo Box with Database Names? Pin
Giorgi Dalakishvili30-Sep-08 0:53
mentorGiorgi Dalakishvili30-Sep-08 0:53 
Questiontext box custom behaviour during edition Pin
Witoldek26-Sep-08 2:01
Witoldek26-Sep-08 2:01 
AnswerRe: text box custom behaviour during edition Pin
Ashfield26-Sep-08 2:29
Ashfield26-Sep-08 2:29 
AnswerRe: text box custom behaviour during edition Pin
John Ad26-Sep-08 8:54
John Ad26-Sep-08 8:54 
AnswerRe: text box custom behaviour during edition Pin
Paul Conrad29-Sep-08 7:38
professionalPaul Conrad29-Sep-08 7:38 
QuestionPlease provide information about Live Video Streaming through C#.NET Pin
nareshkumar4you26-Sep-08 0:00
nareshkumar4you26-Sep-08 0:00 
AnswerRe: Please provide information about Live Video Streaming through C#.NET Pin
Ashfield26-Sep-08 2:31
Ashfield26-Sep-08 2:31 
QuestionSetting Desttop icon on status bar Pin
2BClarified24-Sep-08 8:20
2BClarified24-Sep-08 8:20 
AnswerRe: Setting Desttop icon on status bar Pin
John Ad28-Sep-08 20:04
John Ad28-Sep-08 20:04 
QuestionWIN API Question Pin
Siddhartha S.23-Sep-08 21:04
Siddhartha S.23-Sep-08 21:04 
AnswerRe: WIN API Question Pin
Simon P Stevens26-Sep-08 5:51
Simon P Stevens26-Sep-08 5:51 
GeneralRe: WIN API Question Pin
Thomas Stockwell29-Sep-08 7:20
professionalThomas Stockwell29-Sep-08 7:20 
GeneralRe: WIN API Question Pin
Siddhartha S.30-Sep-08 2:10
Siddhartha S.30-Sep-08 2:10 
GeneralRe: WIN API Question Pin
Simon P Stevens30-Sep-08 11:28
Simon P Stevens30-Sep-08 11:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.