Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:17
Hamid_RT22-May-08 19:17 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:22
subramanyeswari22-May-08 19:22 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:29
Hamid_RT22-May-08 19:29 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:34
subramanyeswari22-May-08 19:34 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:46
Hamid_RT22-May-08 19:46 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:51
subramanyeswari22-May-08 19:51 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 20:15
Hamid_RT22-May-08 20:15 
GeneralRe: GetDIBits Pin
subramanyeswari23-May-08 0:10
subramanyeswari23-May-08 0:10 
i found in the msdn GetDIBits returns zero if the header information is incorrect

BITMAPINFO *bmi = (BITMAPINFO *) _alloca(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD));
memset(&bmi->bmiHeader, 0, sizeof(BITMAPINFOHEADER));
bmi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);



int scanLineCount = GetDIBits(dcMem, bmpMem, 0, rect.Height(), NULL, bmi, DIB_RGB_COLORS);
the value of bmi->bmiHeader.biSize is 40 while debugging.
what i have to do to pass the correct header information
GeneralRe: GetDIBits Pin
Hamid_RT23-May-08 0:35
Hamid_RT23-May-08 0:35 
GeneralRe: GetDIBits Pin
subramanyeswari23-May-08 2:10
subramanyeswari23-May-08 2:10 
Questionvector<string> and char**</string> Pin
vikramlinux22-May-08 2:52
vikramlinux22-May-08 2:52 
AnswerRe: vector and char** Pin
toxcct22-May-08 2:57
toxcct22-May-08 2:57 
GeneralRe: vector and char** Pin
vikramlinux22-May-08 2:59
vikramlinux22-May-08 2:59 
GeneralRe: vector and char** [modified] Pin
toxcct22-May-08 3:09
toxcct22-May-08 3:09 
GeneralRe: vector and char** Pin
vikramlinux22-May-08 3:15
vikramlinux22-May-08 3:15 
GeneralRe: vector and char** Pin
toxcct22-May-08 3:21
toxcct22-May-08 3:21 
GeneralRe: vector and char** Pin
vikramlinux22-May-08 3:28
vikramlinux22-May-08 3:28 
GeneralRe: vector and char** Pin
CPallini22-May-08 4:17
mveCPallini22-May-08 4:17 
GeneralRe: vector and char** Pin
toxcct22-May-08 4:36
toxcct22-May-08 4:36 
GeneralRe: vector and char** Pin
CPallini22-May-08 5:36
mveCPallini22-May-08 5:36 
RantRe: vector and char** Pin
toxcct22-May-08 5:43
toxcct22-May-08 5:43 
GeneralRe: vector and char** Pin
CPallini22-May-08 5:49
mveCPallini22-May-08 5:49 
GeneralRe: vector and char** Pin
toxcct22-May-08 5:52
toxcct22-May-08 5:52 
GeneralRe: vector and char** Pin
CPallini22-May-08 5:57
mveCPallini22-May-08 5:57 
GeneralRe: vector and char** Pin
toxcct22-May-08 6:00
toxcct22-May-08 6:00 

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.