Click here to Skip to main content
15,881,838 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionValueMember with sorted ComboBox Pin
Nigel Mackay30-Sep-08 19:16
Nigel Mackay30-Sep-08 19:16 
QuestionAdd 2 number in Crystal Report Pin
tungcan5diop30-Sep-08 17:26
tungcan5diop30-Sep-08 17:26 
AnswerRe: Add 2 number in Crystal Report Pin
TheCardinal30-Sep-08 20:16
TheCardinal30-Sep-08 20:16 
GeneralRe: Add 2 number in Crystal Report Pin
tungcan5diop1-Oct-08 16:19
tungcan5diop1-Oct-08 16:19 
QuestionCustom scrollbar + ownerdraw listview scrolling Pin
Nedim Sabic30-Sep-08 4:04
Nedim Sabic30-Sep-08 4:04 
QuestionRe: Custom scrollbar + ownerdraw listview scrolling Pin
led mike30-Sep-08 4:45
led mike30-Sep-08 4:45 
AnswerRe: Custom scrollbar + ownerdraw listview scrolling Pin
Nedim Sabic30-Sep-08 8:50
Nedim Sabic30-Sep-08 8:50 
QuestionHow to set the Brightness, Color, Contrast of Video using SliderBars or Track Bars ( While Recording) Pin
balaji_vbr30-Sep-08 2:43
balaji_vbr30-Sep-08 2: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 0:11
PaulaM30-Sep-08 0:11 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili30-Sep-08 0:52
mentorGiorgi Dalakishvili30-Sep-08 0:52 
QuestionFill Combo Box with Database Names? Pin
astrovirgin29-Sep-08 23:36
astrovirgin29-Sep-08 23:36 
AnswerRe: Fill Combo Box with Database Names? Pin
Giorgi Dalakishvili29-Sep-08 23:53
mentorGiorgi Dalakishvili29-Sep-08 23:53 
Questiontext box custom behaviour during edition Pin
Witoldek26-Sep-08 1:01
Witoldek26-Sep-08 1:01 
AnswerRe: text box custom behaviour during edition Pin
Ashfield26-Sep-08 1:29
Ashfield26-Sep-08 1:29 
AnswerRe: text box custom behaviour during edition Pin
John Ad26-Sep-08 7:54
John Ad26-Sep-08 7:54 
AnswerRe: text box custom behaviour during edition Pin
Paul Conrad29-Sep-08 6:38
professionalPaul Conrad29-Sep-08 6:38 
QuestionPlease provide information about Live Video Streaming through C#.NET Pin
nareshkumar4you25-Sep-08 23:00
nareshkumar4you25-Sep-08 23:00 
AnswerRe: Please provide information about Live Video Streaming through C#.NET Pin
Ashfield26-Sep-08 1:31
Ashfield26-Sep-08 1:31 
QuestionSetting Desttop icon on status bar Pin
2BClarified24-Sep-08 7:20
2BClarified24-Sep-08 7:20 
AnswerRe: Setting Desttop icon on status bar Pin
John Ad28-Sep-08 19:04
John Ad28-Sep-08 19:04 
QuestionWIN API Question Pin
Siddhartha S.23-Sep-08 20:04
Siddhartha S.23-Sep-08 20:04 
AnswerRe: WIN API Question Pin
Simon P Stevens26-Sep-08 4:51
Simon P Stevens26-Sep-08 4:51 
GeneralRe: WIN API Question Pin
Thomas Stockwell29-Sep-08 6:20
professionalThomas Stockwell29-Sep-08 6:20 
GeneralRe: WIN API Question Pin
Siddhartha S.30-Sep-08 1:10
Siddhartha S.30-Sep-08 1:10 
GeneralRe: WIN API Question Pin
Simon P Stevens30-Sep-08 10:28
Simon P Stevens30-Sep-08 10: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.