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

C / C++ / MFC

 
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 
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 
Hi Graus,

thanks for ur inspiration and suggestion. Here is wht I am plannin to proceed...

1) I would read the file byte by byte using System.IO namespace.

2) As we know tht the width - value at (byte6)/2
and height - value at byte4 and the starting offset of the actual data is from byte 128. So, after reading the width and height , directly i would jump to 128 offset and starting reading the data.

3) Now the actual scene comes in to play... now the data is 12bpp means they used 2 bytes but they actually used 12 bits in it (am i right?), now the problem is, in which direction we have to consider... since they have given data_type: lsb_msb (means the data is written from lsb to msb [right to left]... so should we have to consider the last 12 bits and now here i didn't get how to shift the bits..and which 8 bits to use to define our new greylevel. if this is cleared then i can proceed with creating a bitmap image with correcsponding RGB channels.

please help me out if u can....and guide me if i am goin in wrong direction..

thanks in advance,
Pavan.

Suman
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 
AnswerRe: Dialog window class name? Pin
Sujan Christo20-Sep-04 18:00
Sujan Christo20-Sep-04 18:00 
QuestionHow to programmatically show and hide Windows XP destktop icons? Pin
Steve Messer20-Sep-04 7:08
Steve Messer20-Sep-04 7:08 
GeneralC++ question Pin
Anonymous20-Sep-04 6:20
Anonymous20-Sep-04 6: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.