Click here to Skip to main content
15,898,999 members
Home / Discussions / C#
   

C#

 
QuestionCompare two png images Pin
Joplinazz23-Dec-08 5:18
Joplinazz23-Dec-08 5:18 
AnswerRe: Compare two png images Pin
Giorgi Dalakishvili23-Dec-08 5:30
mentorGiorgi Dalakishvili23-Dec-08 5:30 
GeneralRe: Compare two png images Pin
Joplinazz23-Dec-08 5:59
Joplinazz23-Dec-08 5:59 
GeneralRe: Compare two png images Pin
Giorgi Dalakishvili23-Dec-08 6:09
mentorGiorgi Dalakishvili23-Dec-08 6:09 
AnswerRe: Compare two png images Pin
#realJSOP23-Dec-08 5:43
professional#realJSOP23-Dec-08 5:43 
GeneralRe: Compare two png images Pin
Joplinazz23-Dec-08 6:00
Joplinazz23-Dec-08 6:00 
GeneralRe: Compare two png images Pin
#realJSOP24-Dec-08 1:36
professional#realJSOP24-Dec-08 1:36 
AnswerRe: Compare two png images Pin
Luc Pattyn23-Dec-08 6:21
sitebuilderLuc Pattyn23-Dec-08 6:21 
Hi,

you could read the files as binary data and calculate a CRC on them, assuming equal CRC
means equal data (there is an odd chance this is not true, depending on the length of
the CRC).

but then different files might still represent the same image (not sure PNG format allows for that to happen); if this matters, read the image with Image.FromFile, save it in a fixed non-compressing format to a MemoryStream and do the CRC stuff (or a full compare) on the MemoryStreams.

If you rely on CRC, you can fill a Dictionary with filenames and CRCs;
if you rely on full image compare, you may end up trying to hold all images at the same
time, severely loading your system.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


Questionget url from IE and Firefox Pin
Kim061823-Dec-08 5:12
Kim061823-Dec-08 5:12 
AnswerRe: get url from IE and Firefox Pin
Giorgi Dalakishvili23-Dec-08 5:32
mentorGiorgi Dalakishvili23-Dec-08 5:32 
Questionlaunch new process Pin
jas0n2323-Dec-08 2:41
jas0n2323-Dec-08 2:41 
AnswerRe: launch new process Pin
EliottA23-Dec-08 2:57
EliottA23-Dec-08 2:57 
AnswerRe: launch new process Pin
Giorgi Dalakishvili23-Dec-08 3:03
mentorGiorgi Dalakishvili23-Dec-08 3:03 
QuestionLaunch WSH (*.js or *.vbs) file from C# Application. Pin
jas0n2323-Dec-08 2:26
jas0n2323-Dec-08 2:26 
AnswerRe: Launch WSH (*.js or *.vbs) file from C# Application. Pin
Giorgi Dalakishvili23-Dec-08 2:34
mentorGiorgi Dalakishvili23-Dec-08 2:34 
AnswerRe: Launch WSH (*.js or *.vbs) file from C# Application. Pin
jas0n2323-Dec-08 3:08
jas0n2323-Dec-08 3:08 
GeneralRe: Launch WSH (*.js or *.vbs) file from C# Application. Pin
Giorgi Dalakishvili23-Dec-08 3:14
mentorGiorgi Dalakishvili23-Dec-08 3:14 
Questionsend a file through Http server Pin
George_George23-Dec-08 1:36
George_George23-Dec-08 1:36 
Questionsave a file as .csv formate Pin
MS Lee23-Dec-08 0:16
MS Lee23-Dec-08 0:16 
AnswerRe: save a file as .csv formate Pin
Colin Angus Mackay23-Dec-08 0:23
Colin Angus Mackay23-Dec-08 0:23 
GeneralRe: save a file as .csv formate Pin
MS Lee23-Dec-08 0:56
MS Lee23-Dec-08 0:56 
GeneralRe: save a file as .csv formate Pin
Colin Angus Mackay23-Dec-08 1:04
Colin Angus Mackay23-Dec-08 1:04 
GeneralRe: save a file as .csv formate Pin
MS Lee23-Dec-08 2:05
MS Lee23-Dec-08 2:05 
GeneralRe: save a file as .csv formate Pin
CPallini23-Dec-08 2:01
mveCPallini23-Dec-08 2:01 
GeneralRe: save a file as .csv formate Pin
Colin Angus Mackay23-Dec-08 2:12
Colin Angus Mackay23-Dec-08 2: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.