Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: OOP Advice Pin
Natepizzle25-Dec-11 9:30
Natepizzle25-Dec-11 9:30 
AnswerRe: OOP Advice Pin
PIEBALDconsult25-Dec-11 4:36
mvePIEBALDconsult25-Dec-11 4:36 
GeneralRe: OOP Advice Pin
Natepizzle25-Dec-11 9:33
Natepizzle25-Dec-11 9:33 
GeneralRe: OOP Advice Pin
PIEBALDconsult25-Dec-11 9:57
mvePIEBALDconsult25-Dec-11 9:57 
AnswerRe: OOP Advice Pin
Luc Pattyn25-Dec-11 11:36
sitebuilderLuc Pattyn25-Dec-11 11:36 
AnswerRe: OOP Advice Pin
BillWoodruff25-Dec-11 14:21
professionalBillWoodruff25-Dec-11 14:21 
GeneralRe: OOP Advice Pin
Natepizzle25-Dec-11 22:13
Natepizzle25-Dec-11 22:13 
Questionvalue of using Func and lambdas vs. Delegates vs. Interface ? Pin
BillWoodruff23-Dec-11 23:20
professionalBillWoodruff23-Dec-11 23:20 
AnswerRe: value of using Func and lambdas vs. Delegates vs. Interface ? Pin
PIEBALDconsult24-Dec-11 2:57
mvePIEBALDconsult24-Dec-11 2:57 
AnswerRe: value of using Func and lambdas vs. Delegates vs. Interface ? Pin
Eddy Vluggen24-Dec-11 10:00
professionalEddy Vluggen24-Dec-11 10:00 
AnswerRe: value of using Func and lambdas vs. Delegates vs. Interface ? Pin
Shameel25-Dec-11 22:55
professionalShameel25-Dec-11 22:55 
Questionshould I create a filter? Pin
is90057james23-Dec-11 17:46
is90057james23-Dec-11 17:46 
QuestionLooking for developers to help in free and opensource project Pin
Constantinos Coudounaris23-Dec-11 8:38
Constantinos Coudounaris23-Dec-11 8:38 
AnswerRe: Looking for developers to help in free and opensource project Pin
Not Active23-Dec-11 9:12
mentorNot Active23-Dec-11 9:12 
QuestionCrystal Report Designing Issue Pin
AmbiguousName22-Dec-11 22:55
AmbiguousName22-Dec-11 22:55 
AnswerRe: Crystal Report Designing Issue Pin
Richard MacCutchan23-Dec-11 0:45
mveRichard MacCutchan23-Dec-11 0:45 
AnswerRe: Crystal Report Designing Issue Pin
Blue_Boy23-Dec-11 4:18
Blue_Boy23-Dec-11 4:18 
QuestionDetecting silence / low level in a WAV file Pin
SimonwHill22-Dec-11 4:55
SimonwHill22-Dec-11 4:55 
AnswerRe: Detecting silence / low level in a WAV file Pin
Alan Balkany22-Dec-11 5:43
Alan Balkany22-Dec-11 5:43 
AnswerRe: Detecting silence / low level in a WAV file Pin
Albert Holguin22-Dec-11 7:43
professionalAlbert Holguin22-Dec-11 7:43 
GeneralMessage Removed Pin
22-Dec-11 7:57
professionalN_tro_P22-Dec-11 7:57 
GeneralRe: Detecting silence / low level in a WAV file Pin
Albert Holguin22-Dec-11 8:44
professionalAlbert Holguin22-Dec-11 8:44 
QuestionHelp Me ! How to add the video OSD? Pin
is90057james21-Dec-11 23:33
is90057james21-Dec-11 23:33 
How to add the video String(OSD), I use DirectX.Capture Class Library?

C#
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private Capture capture = null;
        private Filters filters = new Filters();
      

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            capture = new Capture(filters.VideoInputDevices[0], filters.AudioInputDevices[2]);

            //capture.CaptureComplete += new EventHandler(OnCaptureComplete);
            try
            {
                if (capture.PreviewWindow == null)
                {
                    capture.PreviewWindow = panelVideo;
                    // mnuPreview.Checked = true;
                }
                else
                {
                    capture.PreviewWindow = null;
                    // mnuPreview.Checked = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Unable to enable/disable preview. Please submit a bug report.\n\n" + ex.Message + "\n\n" + ex.ToString());
            }
            


        }

        private void button2_Click(object sender, EventArgs e)
        {
            capture.FrameEvent2 += new Capture.HeFrame(CaptureDone);
            capture.GrapImg();
        }
        private void CaptureDone(System.Drawing.Bitmap e)
        {
            this.pictureBox.Image = e;
            capture.FrameEvent2 -= new Capture.HeFrame(CaptureDone);
           // pictureBox.Image.Save("ddd.jpg");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (!capture.Cued)
                capture.Filename = @"F:\demo.wmv";
            capture.RecFileMode = DirectX.Capture.Capture.RecFileModeType.Wmv;  // Vidow Format is wmv
            capture.Cue();
            capture.Start();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            capture.Stop();
        }
    }
}


modified 22-Dec-11 5:44am.

QuestionIIS Problem Pin
Zeyad Jalil21-Dec-11 20:37
professionalZeyad Jalil21-Dec-11 20:37 
AnswerRe: IIS Problem Pin
Rajesh Anuhya21-Dec-11 20:51
professionalRajesh Anuhya21-Dec-11 20:51 

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.