Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hiding a Tab Control Pin
jonas_berg22-Mar-06 10:05
jonas_berg22-Mar-06 10:05 
AnswerRe: Hiding a Tab Control Pin
Ed.Poore22-Mar-06 10:06
Ed.Poore22-Mar-06 10:06 
QuestionProgressive vs. Baseline JPEG Pin
SylvesterW22-Mar-06 9:10
SylvesterW22-Mar-06 9:10 
AnswerRe: Progressive vs. Baseline JPEG Pin
DaBears22-Mar-06 11:39
DaBears22-Mar-06 11:39 
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW22-Mar-06 19:45
SylvesterW22-Mar-06 19:45 
GeneralRe: Progressive vs. Baseline JPEG Pin
DaBears23-Mar-06 5:36
DaBears23-Mar-06 5:36 
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW23-Mar-06 11:17
SylvesterW23-Mar-06 11:17 
GeneralRe: Progressive vs. Baseline JPEG Pin
DaBears23-Mar-06 11:30
DaBears23-Mar-06 11:30 
Sly,
You don't need a subscription (I don't) just scroll down far enough and you will see the whole post, you have to get past all the ads, and don't click on the "View Solution" button.

But just in case I am getting lucky:

Based on the info here:
http://www.fastgraph.com/help/jpeg_header_format.html

You can read in the necessary info, similarly to how I demonstrated with the above code (for bitmap).


Firstly, define a struct to store the JPEG header info in:


struct JPEGINFOHEADER
{
unsigned short id ;
unsigned short width ;
unsigned short height ;
unsigned char number_of_component ;
// etc etc
} ;



/**
* Return value:
* 0 - Successful
* -1 - Could not find/open the specified file
* -2 - Specified file is not a valid bitmap file
*/
int LoadJpegHeader( char *filename, JPEGINFOHEADER *jpegInfoHeader )
{
FILE *filePtr ;

filePtr = fopen( filename, "rb" ) ;
if ( filePtr == NULL )
{
return -1 ;
}

fread( JpegInfoHeader, sizeof(JPEGINFOHEADER), 1, filePtr ) ;

fclose( filePtr ) ;
return 0 ;
}
GeneralRe: Progressive vs. Baseline JPEG Pin
SylvesterW23-Mar-06 19:13
SylvesterW23-Mar-06 19:13 
QuestionC# Generating Outlook contacts Pin
Paul Sullivan22-Mar-06 8:57
Paul Sullivan22-Mar-06 8:57 
Questionbinding a datagrid to an arraylist Pin
brianmelion22-Mar-06 8:21
brianmelion22-Mar-06 8:21 
QuestionHow to get User Idle time Pin
engsrini22-Mar-06 7:17
engsrini22-Mar-06 7:17 
AnswerRe: How to get User Idle time Pin
Wjousts22-Mar-06 10:03
Wjousts22-Mar-06 10:03 
QuestionHow to Add Outlook Contacts To Database Pin
P R Krishna22-Mar-06 5:43
P R Krishna22-Mar-06 5:43 
AnswerRe: How to Add Outlook Contacts To Database Pin
michaelnoam8-May-06 6:19
michaelnoam8-May-06 6:19 
QuestionResizable, Shaped Windows Form Pin
AssemblySoft22-Mar-06 5:36
AssemblySoft22-Mar-06 5:36 
Questionnsoftware reviews Pin
bakerfishsticks22-Mar-06 4:32
bakerfishsticks22-Mar-06 4:32 
QuestionAdding custom control with CollectionEditor doesn't refresh form Pin
DaBears22-Mar-06 4:12
DaBears22-Mar-06 4:12 
QuestionSudoku puzzle program Pin
eric_tran22-Mar-06 4:10
eric_tran22-Mar-06 4:10 
AnswerRe: Sudoku puzzle program Pin
Ed.Poore22-Mar-06 6:36
Ed.Poore22-Mar-06 6:36 
GeneralRe: Sudoku puzzle program Pin
eric_tran27-Mar-06 19:16
eric_tran27-Mar-06 19:16 
AnswerRe: Sudoku puzzle program Pin
DigitalKing22-Mar-06 20:36
DigitalKing22-Mar-06 20:36 
GeneralRe: Sudoku puzzle program Pin
eric_tran27-Mar-06 19:16
eric_tran27-Mar-06 19:16 
QuestionClient /Server Programming Pin
Jijo BP22-Mar-06 4:09
Jijo BP22-Mar-06 4:09 
AnswerRe: Client /Server Programming Pin
Divyang Mithaiwala22-Mar-06 4:20
Divyang Mithaiwala22-Mar-06 4:20 

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.