Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Not much help but... Pin
Kiran Satish21-Sep-04 18:42
Kiran Satish21-Sep-04 18:42 
GeneralRe: Not much help but... Pin
Christian Graus22-Sep-04 10:21
protectorChristian Graus22-Sep-04 10:21 
GeneralRe: Not much help but... Pin
Kiran Satish21-Sep-04 19:29
Kiran Satish21-Sep-04 19:29 
GeneralRe: Not much help but... Pin
Christian Graus22-Sep-04 10:22
protectorChristian Graus22-Sep-04 10:22 
GeneralRe: Not much help but... Pin
Kiran Satish22-Sep-04 12:41
Kiran Satish22-Sep-04 12:41 
GeneralRe: Not much help but... Pin
Christian Graus22-Sep-04 12:45
protectorChristian Graus22-Sep-04 12:45 
GeneralRe: Not much help but... Pin
Kiran Satish22-Sep-04 13:43
Kiran Satish22-Sep-04 13:43 
GeneralRe: Not much help but... Pin
Christian Graus22-Sep-04 13:52
protectorChristian Graus22-Sep-04 13:52 
I'm sorry, I really don't have time to look at a sample file.

IFFCL_GRAY {
bits: 12
byte: @0=0x00
byte: @1=0x00
byte: @2=0x00
byte: @3=0x00
width:[@6=ishort]/2
height:@4=ishort
start_offset:128
line_offset:width*2
datatype: lsb_msb
}

This looks to me like the image is 12 bit greyscale, which means that there are 4096 shades of gray. Given that the line offset is twice the width, each pixel must be stored in 2 bytes, which is fine, given that this gives you 16 bits to play with, it's a case of figuring out which 4 bits are ignored. It also looks like there is a 128 byte header at the top of the file, image data would follow after that. It looks like byte 6 of the header is the width, and btye 4 is the height.

All of this is a wild guess.


Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: Not much help but... Pin
Kiran Satish9-Oct-04 14:36
Kiran Satish9-Oct-04 14:36 
GeneralRe: Not much help but... Pin
Christian Graus10-Oct-04 9:04
protectorChristian Graus10-Oct-04 9:04 
GeneralRe: Not much help but... Pin
Kiran Satish10-Oct-04 9:37
Kiran Satish10-Oct-04 9:37 
GeneralRe: Not much help but... Pin
Kiran Satish23-Sep-04 6:28
Kiran Satish23-Sep-04 6:28 
GeneralRe: Not much help but... Pin
Christian Graus23-Sep-04 10:58
protectorChristian Graus23-Sep-04 10:58 
GeneralRe: Not much help but... Pin
Kiran Satish23-Sep-04 12:02
Kiran Satish23-Sep-04 12:02 
GeneralCTreeCtrl highlight design question ... Pin
Maximilien20-Sep-04 10:06
Maximilien20-Sep-04 10:06 
GeneralProblmes using std::map in a class Pin
Rickard Andersson2020-Sep-04 9:26
Rickard Andersson2020-Sep-04 9:26 
GeneralRe: Problmes using std::map in a class Pin
Navin20-Sep-04 11:06
Navin20-Sep-04 11:06 
GeneralRe: Problmes using std::map in a class Pin
Jörgen Sigvardsson20-Sep-04 13:40
Jörgen Sigvardsson20-Sep-04 13:40 
GeneralRe: Problmes using std::map in a class Pin
Rickard Andersson2020-Sep-04 23:27
Rickard Andersson2020-Sep-04 23:27 
GeneralRe: Problmes using std::map in a class Pin
Moak21-Sep-04 1:13
Moak21-Sep-04 1:13 
Generalwinbase.h and STILL_ACTIVE Pin
ns20-Sep-04 8:40
ns20-Sep-04 8:40 
QuestionDialog window class name? Pin
0v3rloader20-Sep-04 8:22
0v3rloader20-Sep-04 8:22 
AnswerRe: Dialog window class name? Pin
mfcuser20-Sep-04 9:40
mfcuser20-Sep-04 9:40 
AnswerRe: Dialog window class name? Pin
David Crow20-Sep-04 10:28
David Crow20-Sep-04 10:28 
AnswerRe: Dialog window class name? Pin
Jörgen Sigvardsson20-Sep-04 13:27
Jörgen Sigvardsson20-Sep-04 13:27 

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.