Click here to Skip to main content
15,946,525 members
Home / Discussions / C#
   

C#

 
GeneralRe: Row Count Pin
cocoonwls22-Apr-08 18:39
cocoonwls22-Apr-08 18:39 
GeneralRe: Row Count Pin
Vikram A Punathambekar22-Apr-08 18:52
Vikram A Punathambekar22-Apr-08 18:52 
GeneralRe: Row Count Pin
cocoonwls22-Apr-08 19:09
cocoonwls22-Apr-08 19:09 
GeneralRe: Row Count Pin
Vikram A Punathambekar22-Apr-08 18:53
Vikram A Punathambekar22-Apr-08 18:53 
GeneralRe: Row Count Pin
Ajay.k_Singh22-Apr-08 19:36
Ajay.k_Singh22-Apr-08 19:36 
GeneralParameter is not valid. Pin
cuongmits22-Apr-08 13:54
cuongmits22-Apr-08 13:54 
GeneralRe: Parameter is not valid. Pin
Christian Graus22-Apr-08 13:58
protectorChristian Graus22-Apr-08 13:58 
GeneralRe: Parameter is not valid. Pin
cuongmits22-Apr-08 14:05
cuongmits22-Apr-08 14:05 
Thank you so much for quick reply Christian Graus,
this is my code:
<br />
...<br />
private void btnCreateImage_Click(object sender, EventArgs e)<br />
        {<br />
            Bitmap img = new Bitmap(MaxSize, MaxSize);<br />
            for (int i = 0; i < MaxSize; i++)<br />
            {<br />
                for (int j = 0; j < MaxSize; j++)<br />
                {<br />
                    if (obj.Img_In_Process[i, j] < 0) img.SetPixel(j, i, Color.FromArgb(0, 0, 0));<br />
                    else img.SetPixel(j, i, Color.FromArgb(255, 255, 255));<br />
<br />
                }<br />
            }<br />
            picbox.Image = img;<br />
            //string path = Application.ExecutablePath + "\\result.bmp";<br />
            //MessageBox.Show(path);<br />
<br />
            try<br />
            {<br />
                img.Save("C:\\result.bmp");<br />
                //img.Save(path);<br />
            }<br />
            finally<br />
            {<br />
                img.Dispose();<br />
            }<br />
<br />
        }<br />
...<br />


I'm newbie at C#. In my project, I'm just trying to save an .bmp image from a matrix.
GeneralRe: Parameter is not valid. Pin
Christian Graus22-Apr-08 14:08
protectorChristian Graus22-Apr-08 14:08 
GeneralRe: Parameter is not valid. Pin
Luc Pattyn22-Apr-08 16:37
sitebuilderLuc Pattyn22-Apr-08 16:37 
GeneralRe: Parameter is not valid. Pin
Jordanwb22-Apr-08 13:58
Jordanwb22-Apr-08 13:58 
GeneralRe: Parameter is not valid. Pin
cuongmits22-Apr-08 14:08
cuongmits22-Apr-08 14:08 
GeneralRe: Parameter is not valid. Pin
Christian Graus22-Apr-08 14:10
protectorChristian Graus22-Apr-08 14:10 
GeneralRe: Parameter is not valid. Pin
cuongmits22-Apr-08 14:15
cuongmits22-Apr-08 14:15 
GeneralRe: Parameter is not valid. Pin
cuongmits22-Apr-08 14:18
cuongmits22-Apr-08 14:18 
GeneralRe: Parameter is not valid. Pin
Christian Graus22-Apr-08 14:21
protectorChristian Graus22-Apr-08 14:21 
GeneralRe: Parameter is not valid. Pin
cuongmits22-Apr-08 14:22
cuongmits22-Apr-08 14:22 
GeneralRe: Parameter is not valid. Pin
Jordanwb22-Apr-08 14:36
Jordanwb22-Apr-08 14:36 
GeneralCalculate a formula Pin
mehrdadc4822-Apr-08 9:24
mehrdadc4822-Apr-08 9:24 
GeneralRe: Calculate a formula Pin
Christian Graus22-Apr-08 12:04
protectorChristian Graus22-Apr-08 12:04 
GeneralRe: Calculate a formula Pin
Mitch F.22-Apr-08 12:09
Mitch F.22-Apr-08 12:09 
QuestionComparing two ArrayLists ? Pin
dennycrane22-Apr-08 8:58
dennycrane22-Apr-08 8:58 
GeneralRe: Comparing two ArrayLists ? Pin
User 665822-Apr-08 9:01
User 665822-Apr-08 9:01 
GeneralRe: Comparing two ArrayLists ? Pin
dennycrane22-Apr-08 9:06
dennycrane22-Apr-08 9:06 
GeneralRe: Comparing two ArrayLists ? [modified] Pin
User 665822-Apr-08 9:15
User 665822-Apr-08 9:15 

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.