Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with Rx EventMessager Pin
Kenneth Haugland5-Sep-18 9:56
mvaKenneth Haugland5-Sep-18 9:56 
QuestionUnable to Access Method in Referenced .dll (C#/VS2017) Pin
Member 139418904-Sep-18 22:55
Member 139418904-Sep-18 22:55 
AnswerRe: Unable to Access Method in Referenced .dll (C#/VS2017) Pin
Richard MacCutchan4-Sep-18 23:10
mveRichard MacCutchan4-Sep-18 23:10 
GeneralRe: Unable to Access Method in Referenced .dll (C#/VS2017) Pin
Member 139418904-Sep-18 23:19
Member 139418904-Sep-18 23:19 
AnswerRe: Unable to Access Method in Referenced .dll (C#/VS2017) Pin
Member 139418905-Sep-18 0:24
Member 139418905-Sep-18 0:24 
QuestionConstructor Injection Pin
jones298474-Sep-18 7:33
jones298474-Sep-18 7:33 
AnswerRe: Constructor Injection Pin
Mc_Topaz4-Sep-18 10:15
Mc_Topaz4-Sep-18 10:15 
QuestionAforge Video-Picture quality Pin
User 136751144-Sep-18 1:08
User 136751144-Sep-18 1:08 
Hello,

Even though webcam quality is 5mp , webcam seems and takes low quality of picture via below codes.

Is there any way to fix this and raise quality to maximum possible?

C#

namespace DXApplication2
{
    public partial class Form1 : DevExpress.XtraEditors.XtraForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private FilterInfoCollection webcam;
        private VideoCaptureDevice cam;

        private void Form1_Load(object sender, EventArgs e)
        {

            this.WindowState = FormWindowState.Maximized;

            webcam = new FilterInfoCollection(FilterCategory.VideoInputDevice);
            foreach (FilterInfo VideoCaptureDevice in webcam)
            {
                comboBox2.Items.Add(VideoCaptureDevice.Name);
            }
            comboBox2.SelectedIndex = 0;
        }   


if (pictureBox3.Image != null)
               {
                   iTextSharp.text.Image png2 = iTextSharp.text.Image.GetInstance(pictureBox3.Image, System.Drawing.Imaging.ImageFormat.Jpeg);
                   png2.Alignment = Element.ALIGN_CENTER;
                   if (png2.Height > png2.Width)
                   {
                       //Maximum height is 800 pixels.
                       float percentage = 0.0f;
                       percentage = 400 / png2.Height;
                       png2.ScalePercent(percentage * 100);
                   }
                   else
                   {
                       //Maximum width is 600 pixels.
                       float percentage = 0.0f;
                       percentage = 320 / png2.Width;
                       png2.ScalePercent(percentage * 100);
                   }
                   pdf1.Add(png2);
               }


private void cam_NewFrame(object sender, NewFrameEventArgs eventArgs)
       {
           Bitmap bit = (Bitmap)eventArgs.Frame.Clone();
           pictureBox1.Image = bit;
       }

       private void button6_Click(object sender, EventArgs e)
       {

           pictureBox2.Image = pictureBox1.Image;
       }


modified 13-Feb-19 21:02pm.

QuestionC# convert image format to dpx Pin
Member 135795963-Sep-18 23:28
Member 135795963-Sep-18 23:28 
AnswerRe: C# convert image format to dpx Pin
OriginalGriff4-Sep-18 1:10
mveOriginalGriff4-Sep-18 1:10 
SuggestionRe: C# convert image format to dpx Pin
Richard Deeming4-Sep-18 1:48
mveRichard Deeming4-Sep-18 1:48 
Question"Hiding" functions from StackTrace Pin
Bernhard Hiller3-Sep-18 2:37
Bernhard Hiller3-Sep-18 2:37 
AnswerRe: "Hiding" functions from StackTrace Pin
OriginalGriff3-Sep-18 4:12
mveOriginalGriff3-Sep-18 4:12 
AnswerRe: "Hiding" functions from StackTrace Pin
Gerry Schmitz4-Sep-18 4:53
mveGerry Schmitz4-Sep-18 4:53 
Questionhow to use array in main that was created in class? Pin
Member 139703232-Sep-18 8:51
Member 139703232-Sep-18 8:51 
AnswerRe: how to use array in main that was created in class? Pin
Luc Pattyn2-Sep-18 16:40
sitebuilderLuc Pattyn2-Sep-18 16:40 
QuestionVB.net dll use with C# windows form Pin
BobbyStrain1-Sep-18 18:09
BobbyStrain1-Sep-18 18:09 
AnswerRe: VB.net dll use with C# windows form Pin
OriginalGriff1-Sep-18 19:55
mveOriginalGriff1-Sep-18 19:55 
GeneralRe: VB.net dll use with C# windows form Pin
BobbyStrain2-Sep-18 4:51
BobbyStrain2-Sep-18 4:51 
GeneralRe: VB.net dll use with C# windows form Pin
OriginalGriff2-Sep-18 4:57
mveOriginalGriff2-Sep-18 4:57 
GeneralRe: VB.net dll use with C# windows form Pin
BobbyStrain3-Sep-18 17:32
BobbyStrain3-Sep-18 17:32 
GeneralRe: VB.net dll use with C# windows form Pin
OriginalGriff3-Sep-18 20:12
mveOriginalGriff3-Sep-18 20:12 
GeneralRe: VB.net dll use with C# windows form Pin
BobbyStrain4-Sep-18 17:17
BobbyStrain4-Sep-18 17:17 
GeneralRe: VB.net dll use with C# windows form Pin
Mycroft Holmes4-Sep-18 19:21
professionalMycroft Holmes4-Sep-18 19:21 
GeneralRe: VB.net dll use with C# windows form Pin
BobbyStrain6-Sep-18 11:12
BobbyStrain6-Sep-18 11:12 

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.