|
I am displaying an image using dib class . now i wish to flip my image horizontally as well as vertically
::StretchDIBits(pDC->m_hDC, // hDC
lpDCRect->left, // DestX
lpDCRect->top, // DestY
RECTWIDTH(lpDCRect), // nDestWidth
RECTHEIGHT(lpDCRect), // nDestHeight
lpDIBRect->left, // SrcX
lpDIBRect->top, // SrcY
m_pBMI->bmiHeader.biWidth,//RECTWIDTH(lpDIBRect), // wSrcWidth
RECTHEIGHT(lpDIBRect), // wSrcHeight
m_pBits, // lpBits
m_pBMI, // lpBitsInfo
DIB_RGB_COLORS, // wUsage
SRCCOPY); // dwROP
As per MSDN Documents i am changing the sign also but i am unable to get th desird result
Please if someone could help me out
I am new to vc++
-- modified at 6:26 Friday 19th May, 2006
|
|
|
|
|
have u tried this flag in your code?
DSTINVERT
-Sarath
|
|
|
|
|
No this is not helping by doing this i can see only the black box in the destination
|
|
|
|
|
|
Thanks a lot this solved my problem
|
|
|
|
|
|
I need to perform some IO routines (C programming under linux) and I realised many of these routines are in the file io.h but i do not know where could I get a copy of this file. I know that this file is free for distribution (The open source verison is free). Where do I get to download this header file? Any help or pointers in this direction is highly appreciated.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
-- Moved by Ed. at 9:33 Friday 19th May, 2006
|
|
|
|
|
Wrong forum - Please see the big red sign when starting a new thread in this forum that says quite explicity "No programming questions". Try an appropriate programming forum.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Sorry to have disturbed you. But, how did this become a programming question? I did not ask the C++ language commands to know how to open the usb port and get access to the buffer or anything. I just asked where would I get the file io.h
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Rajesh R. Subramanian wrote: I just asked where would I get the file io.h
Yes I knew that you just need a URL to download that header file.
Maxwell Chen
|
|
|
|
|
Colin Angus Mackay wrote: Wrong forum
He is asking for some .h file, but he couldn't find a Linux programming forum on CP.
Maxwell Chen
|
|
|
|
|
Colin, he's just asking for a .H file, not trying to open an Excel file in VB or create a button in a datagrid.
Cheers,
Vikram.
I don't know and you don't either.
Militant Agnostic
|
|
|
|
|
Thats not a programming question IMHO
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
|
|
|
|
|
Use <cstdio> if you are using a C++ compiler. All the C IO functions, in the std namespace.
Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven."
- Penn Jillette
-- modified at 6:34 Friday 19th May, 2006, damn escaping
|
|
|
|
|
No sir, i am using C compiler and the header file that i am looking for is not there.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Odd, should be under /usr/include somewhere. Can't get far without the standard C lib in UNIX.
Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven."
- Penn Jillette
|
|
|
|
|
it can be somewhere weird, like /usr/include/asm-i386/, otherwise you may find it in <linux kernel="" headers="">/include/asm-i386
|
|
|
|
|
Here you can get the file[^]
under linux the file is present at
/usr/include/asm/
Knock out 't' from can't,
You can if you think you can
-- modified at 9:44 Friday 19th May, 2006
|
|
|
|
|
How to convert ASCII value to character. Meaning im reading data from device it gives 65 insted of 'A'. how can i get my data back in VC++.Net.
|
|
|
|
|
sivaprakashshanmugam wrote: ata from device it gives 65 insted of 'A'. how can i get my data back
printf("Data = '%c'", 65);
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: printf("Data = '%c'", 65);
or
char ch = 65; :->
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: char ch = 65;
char ch = 'A';<br />
printf("Data = '%c'", ch);
Maxwell Chen
|
|
|
|
|
|
Nibu thomas wrote: Copy cat...
Maxwell Chen
|
|
|
|
|
maybe it is some helpful to you Here[^]
whitesky
|
|
|
|