Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: IIS Problem Pin
thatraja21-Dec-11 22:57
professionalthatraja21-Dec-11 22:57 
GeneralRe: IIS Problem Pin
Rajesh Anuhya21-Dec-11 23:00
professionalRajesh Anuhya21-Dec-11 23:00 
AnswerRe: IIS Problem Pin
#realJSOP22-Dec-11 3:57
professional#realJSOP22-Dec-11 3:57 
QuestionIs "Type" serializable? [SOLVED] Pin
Richard Andrew x6421-Dec-11 18:05
professionalRichard Andrew x6421-Dec-11 18:05 
AnswerRe: Is "Type" serializable? Pin
Not Active21-Dec-11 18:41
mentorNot Active21-Dec-11 18:41 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6421-Dec-11 18:44
professionalRichard Andrew x6421-Dec-11 18:44 
GeneralRe: Is "Type" serializable? Pin
SledgeHammer0122-Dec-11 6:29
SledgeHammer0122-Dec-11 6:29 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6422-Dec-11 7:26
professionalRichard Andrew x6422-Dec-11 7:26 
AnswerRe: Is "Type" serializable? [SOLVED] Pin
PIEBALDconsult22-Dec-11 5:13
mvePIEBALDconsult22-Dec-11 5:13 
GeneralRe: Is "Type" serializable? [SOLVED] Pin
Richard Andrew x6422-Dec-11 7:27
professionalRichard Andrew x6422-Dec-11 7:27 
QuestionHow to prevent remote log off Pin
turbosupramk321-Dec-11 8:57
turbosupramk321-Dec-11 8:57 
AnswerRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 8:58
SledgeHammer0121-Dec-11 8:58 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 9:06
turbosupramk321-Dec-11 9:06 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 10:15
SledgeHammer0121-Dec-11 10:15 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:44
turbosupramk321-Dec-11 10:44 

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.