Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compare picturebox.image with image from a resource file Pin
NavnathKale19-Apr-10 1:06
NavnathKale19-Apr-10 1:06 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 1:18
dizzyJ19-Apr-10 1:18 
AnswerRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 1:12
Anindya Chatterjee19-Apr-10 1:12 
GeneralRe: Compare picturebox.image with image from a resource file Pin
NavnathKale19-Apr-10 1:30
NavnathKale19-Apr-10 1:30 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 1:32
dizzyJ19-Apr-10 1:32 
GeneralRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 1:45
Anindya Chatterjee19-Apr-10 1:45 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 2:03
dizzyJ19-Apr-10 2:03 
GeneralRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 2:50
Anindya Chatterjee19-Apr-10 2:50 
Use System.Drawing.Imaging.ImageFormat.Bmp instead. Here is the test code

Image img1 = pictureBox1.Image;
            Image img2 = pictureBox2.Image;

            MemoryStream ms1 = new MemoryStream(), ms2 = new MemoryStream();
            
            img1.Save(ms1, ImageFormat.Bmp);
            img2.Save(ms2, ImageFormat.Bmp);

            byte[] byteArray1, byteArray2;

            byteArray1 = ms1.ToArray();
            byteArray2 = ms2.ToArray();

            if (byteArray1.Length == byteArray2.Length)
            {
                for (int i = 0; i < byteArray1.Length; i++)
                {
                    if(byteArray1[i] != byteArray2[i])
                        MessageBox.Show("Not Same");
                }
                MessageBox.Show("Image Same");
            }
            else
                MessageBox.Show("Not Same");


Inform me if it solves the problem.

GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 3:07
dizzyJ19-Apr-10 3:07 
AnswerRe: Compare picturebox.image with image from a resource file Pin
sadiq_arbaoui17-Jan-11 23:07
sadiq_arbaoui17-Jan-11 23:07 
QuestionManipulate XML Pin
NarVish18-Apr-10 23:32
NarVish18-Apr-10 23:32 
AnswerRe: Manipulate XML Pin
NavnathKale19-Apr-10 0:00
NavnathKale19-Apr-10 0:00 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 1:13
NarVish19-Apr-10 1:13 
GeneralRe: Manipulate XML Pin
NavnathKale19-Apr-10 2:08
NavnathKale19-Apr-10 2:08 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 3:11
NarVish19-Apr-10 3:11 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 19:13
NarVish19-Apr-10 19:13 
GeneralRe: Manipulate XML Pin
NavnathKale19-Apr-10 21:48
NavnathKale19-Apr-10 21:48 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 23:34
NarVish19-Apr-10 23:34 
GeneralRe: Manipulate XML Pin
NavnathKale20-Apr-10 0:58
NavnathKale20-Apr-10 0:58 
GeneralRe: Manipulate XML Pin
NarVish20-Apr-10 1:20
NarVish20-Apr-10 1:20 
GeneralRe: Manipulate XML Pin
NavnathKale20-Apr-10 1:21
NavnathKale20-Apr-10 1:21 
QuestionHow to put large text data (~20mb) into sql cs 3.5 database? Pin
Anindya Chatterjee18-Apr-10 21:42
Anindya Chatterjee18-Apr-10 21:42 
AnswerRe: How to put large text data (~20mb) into sql cs 3.5 database? Pin
Ashfield18-Apr-10 22:16
Ashfield18-Apr-10 22:16 
GeneralRe: How to put large text data (~20mb) into sql cs 3.5 database? Pin
Anindya Chatterjee18-Apr-10 22:28
Anindya Chatterjee18-Apr-10 22:28 
GeneralRe: How to put large text data (~20mb) into sql cs 3.5 database? Pin
Ashfield18-Apr-10 22:43
Ashfield18-Apr-10 22:43 

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.