Click here to Skip to main content
15,910,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read width & Height of jpeg file Pin
Alaric_1-Jul-07 13:35
professionalAlaric_1-Jul-07 13:35 
GeneralRe: Read width & Height of jpeg file Pin
Alaric_1-Jul-07 13:50
professionalAlaric_1-Jul-07 13:50 
GeneralRe: Read width & Height of jpeg file Pin
Luc Pattyn1-Jul-07 14:06
sitebuilderLuc Pattyn1-Jul-07 14:06 
GeneralRe: Read width & Height of jpeg file Pin
Luc Pattyn1-Jul-07 14:19
sitebuilderLuc Pattyn1-Jul-07 14:19 
GeneralRe: Read width & Height of jpeg file Pin
Alaric_1-Jul-07 14:23
professionalAlaric_1-Jul-07 14:23 
GeneralRe: Read width & Height of jpeg file Pin
Alaric_1-Jul-07 14:24
professionalAlaric_1-Jul-07 14:24 
GeneralRe: Read width & Height of jpeg file Pin
Luc Pattyn1-Jul-07 14:56
sitebuilderLuc Pattyn1-Jul-07 14:56 
GeneralRe: Read width & Height of jpeg file [modified] Pin
Alaric_1-Jul-07 16:03
professionalAlaric_1-Jul-07 16:03 
yeah, I can live with it...I'm having a new problem though:

if (code != 0xFF) throw new ApplicationException(
                               "Unexpected value in file " + filename);


throws ....code equaled 216. What exactly is that check for? Do you know what the value of 216 means in this context? The first pass through, "code" was 255, then the next value was ...[Fixed it before I finished the post]

...Since the only thing I'm wanting to do is determine the width & height of the file, I just place a check for them inside the code check so it's now looking for
if(code != 0xFF && width == 0 && height == 0)
{
     throw;
}

so now it will only throw if the width & height haven't been set yet..if they've been set, then I simply break when the code is not 0xFF. ...Is 0xFF like a key value for the header or something like that?


Welcome my son...Welcome..to the Machine

GeneralRe: Read width and height of jpeg file Pin
Luc Pattyn1-Jul-07 22:09
sitebuilderLuc Pattyn1-Jul-07 22:09 
GeneralRe: Read width and height of jpeg file Pin
Alaric_2-Jul-07 9:51
professionalAlaric_2-Jul-07 9:51 
Questionhexadecimal compare ? Pin
B.A30-Jun-07 20:49
B.A30-Jun-07 20:49 
AnswerRe: hexadecimal compare ? Pin
B.A30-Jun-07 21:12
B.A30-Jun-07 21:12 
AnswerRe: hexadecimal compare ? Pin
Guffa30-Jun-07 21:27
Guffa30-Jun-07 21:27 
QuestionLibrary management system Pin
Diana181130-Jun-07 18:05
Diana181130-Jun-07 18:05 
AnswerRe: Library management system Pin
zeeShan anSari30-Jun-07 20:01
zeeShan anSari30-Jun-07 20:01 
AnswerRe: Library management system Pin
Alaric_1-Jul-07 6:43
professionalAlaric_1-Jul-07 6:43 
QuestionGiving an object multiple enumerator types Pin
Rareed30-Jun-07 15:16
Rareed30-Jun-07 15:16 
AnswerRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:27
protectorChristian Graus30-Jun-07 15:27 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 15:32
Rareed30-Jun-07 15:32 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 15:58
protectorChristian Graus30-Jun-07 15:58 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:09
Rareed30-Jun-07 16:09 
GeneralRe: Giving an object multiple enumerator types Pin
Christian Graus30-Jun-07 16:26
protectorChristian Graus30-Jun-07 16:26 
GeneralRe: Giving an object multiple enumerator types Pin
Rareed30-Jun-07 16:32
Rareed30-Jun-07 16:32 
GeneralRe: Giving an object multiple enumerator types Pin
Robert Rohde1-Jul-07 2:56
Robert Rohde1-Jul-07 2:56 
QuestionSave data into a .dat file Pin
atlasliu30-Jun-07 14:44
atlasliu30-Jun-07 14: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.