Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlib vs exe compatibility? Pin
Kyudos12-Jan-04 2:28
Kyudos12-Jan-04 2:28 
GeneralCFileDialog Pin
jerry0davis12-Jan-04 2:06
jerry0davis12-Jan-04 2:06 
GeneralGetPixel / SetPixel Pin
jerry0davis12-Jan-04 2:00
jerry0davis12-Jan-04 2:00 
GeneralRe: GetPixel / SetPixel Pin
Jijo.Raj12-Jan-04 2:10
Jijo.Raj12-Jan-04 2:10 
GeneralRe: GetPixel / SetPixel Pin
jerry0davis12-Jan-04 2:15
jerry0davis12-Jan-04 2:15 
GeneralRe: GetPixel / SetPixel Pin
Jijo.Raj12-Jan-04 2:23
Jijo.Raj12-Jan-04 2:23 
GeneralRe: GetPixel / SetPixel Pin
jerry0davis12-Jan-04 2:32
jerry0davis12-Jan-04 2:32 
GeneralRe: GetPixel / SetPixel Pin
Jijo.Raj12-Jan-04 2:52
Jijo.Raj12-Jan-04 2:52 
For finding the colordepth of the bitmap, Use

BITMAP bmpInfo;
bitmap.GetBitmap (&bmpInfo);


then bmpInfo.bmBitsPixel will give you the color depth. Now the rest is easy, you got how many bits are used to represent each pixel of the bitmap and you had the bitmap data with you.

Simple, isn't it ? Wink | ;)

Regards,
Jijo.


________________________________

Yesterday is history,
Tomorrow is a mystery,
But today is a present.
GeneralRe: GetPixel / SetPixel Pin
jerry0davis12-Jan-04 2:54
jerry0davis12-Jan-04 2:54 
GeneralMultilingual (MFC) Pin
dodat12-Jan-04 1:22
dodat12-Jan-04 1:22 
GeneralRe: Multilingual (MFC) Pin
abcowherd12-Jan-04 1:36
abcowherd12-Jan-04 1:36 
GeneralRe: Multilingual (MFC) Pin
Prakash Nadar12-Jan-04 4:29
Prakash Nadar12-Jan-04 4:29 
GeneralConsole Codepage Change the console language to non english Pin
Anonymous12-Jan-04 1:00
Anonymous12-Jan-04 1:00 
GeneralNeed Help in DirectX Pin
msramachandran12-Jan-04 0:35
msramachandran12-Jan-04 0:35 
GeneralRe: Need Help in DirectX Pin
Jijo.Raj12-Jan-04 0:54
Jijo.Raj12-Jan-04 0:54 
GeneralRe: Need Help in DirectX Pin
ZoogieZork12-Jan-04 1:23
ZoogieZork12-Jan-04 1:23 
Generallistbox control Pin
Vijay_Mak12-Jan-04 0:22
Vijay_Mak12-Jan-04 0:22 
GeneralRe: listbox control Pin
ohadp12-Jan-04 2:13
ohadp12-Jan-04 2:13 
GeneralRe: listbox control Pin
Vijay_Mak12-Jan-04 16:45
Vijay_Mak12-Jan-04 16:45 
GeneralRe: listbox control Pin
ohadp12-Jan-04 18:53
ohadp12-Jan-04 18:53 
GeneralClipboard API calls Pin
impeham11-Jan-04 23:54
impeham11-Jan-04 23:54 
GeneralRe: Clipboard API calls Pin
pratheesh12-Jan-04 1:14
pratheesh12-Jan-04 1:14 
GeneralRe: Clipboard API calls Pin
impeham12-Jan-04 2:19
impeham12-Jan-04 2:19 
GeneralRe: Clipboard API calls Pin
pratheesh12-Jan-04 18:24
pratheesh12-Jan-04 18:24 
GeneralRe: Clipboard API calls Pin
impeham12-Jan-04 23:48
impeham12-Jan-04 23:48 

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.