Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery8-Sep-08 6:19
Mark Salsbery8-Sep-08 6:19 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
fitatc8-Sep-08 14:33
fitatc8-Sep-08 14:33 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery9-Sep-08 4:54
Mark Salsbery9-Sep-08 4:54 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
fitatc9-Sep-08 21:18
fitatc9-Sep-08 21:18 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery10-Sep-08 4:46
Mark Salsbery10-Sep-08 4:46 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
fitatc10-Sep-08 17:07
fitatc10-Sep-08 17:07 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery11-Sep-08 4:25
Mark Salsbery11-Sep-08 4:25 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
fitatc11-Sep-08 18:09
fitatc11-Sep-08 18:09 
Mark Salsbery wrote:
What is this? I thought you were using CImage?


Yes, I just steped into the CImage::Load()
It's like below:
atlimage.h
inline HRESULT CImage::Load( LPCTSTR pszFileName ) throw()
{
	if( !InitGDIPlus() )
	{
		return( E_FAIL );
	}

	Gdiplus::Bitmap bmSrc( (CT2W)pszFileName );      ---- ★
	if( bmSrc.GetLastStatus() != Gdiplus::Ok )
	{
		return( E_FAIL );
	}

	return( CreateFromGdiplusBitmap( bmSrc ) );
}

I steped into ★, because all the BMP data it's used below is from here,
and I get:
inline 
Bitmap::Bitmap(
    IN const WCHAR *filename, 
    IN BOOL useEmbeddedColorManagement
    )
{
    GpBitmap *bitmap = NULL;

    if(useEmbeddedColorManagement) 
    {
        lastResult = DllExports::GdipCreateBitmapFromFileICM(filename, &bitmap);
    }
    else
    {
        lastResult = DllExports::GdipCreateBitmapFromFile(filename, &bitmap);   --- ★★
    }

    SetNativeImage(bitmap);
}

Big Grin | :-D ★★:this is what I posted in last time, sorry for confusing message.
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery12-Sep-08 4:59
Mark Salsbery12-Sep-08 4:59 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery12-Sep-08 5:01
Mark Salsbery12-Sep-08 5:01 
QuestionPostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 21:57
Dhiraj kumar Saini7-Sep-08 21:57 
AnswerRe: PostMessage() function Pin
_AnsHUMAN_ 7-Sep-08 22:01
_AnsHUMAN_ 7-Sep-08 22:01 
GeneralRe: PostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 22:46
Dhiraj kumar Saini7-Sep-08 22:46 
GeneralRe: PostMessage() function Pin
CPallini7-Sep-08 22:51
mveCPallini7-Sep-08 22:51 
AnswerRe: PostMessage() function Pin
CPallini7-Sep-08 22:39
mveCPallini7-Sep-08 22:39 
GeneralRe: PostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 23:18
Dhiraj kumar Saini7-Sep-08 23:18 
GeneralRe: PostMessage() function Pin
CPallini7-Sep-08 23:26
mveCPallini7-Sep-08 23:26 
QuestionAbout Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 21:32
TooShy2Talk7-Sep-08 21:32 
AnswerRe: About Graphics::RotateTransform()???? Pin
CPallini7-Sep-08 21:37
mveCPallini7-Sep-08 21:37 
QuestionRe: About Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 21:57
TooShy2Talk7-Sep-08 21:57 
AnswerRe: About Graphics::RotateTransform()???? Pin
SandipG 7-Sep-08 22:00
SandipG 7-Sep-08 22:00 
QuestionRe: About Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 22:45
TooShy2Talk7-Sep-08 22:45 
AnswerRe: About Graphics::RotateTransform()???? Pin
SandipG 7-Sep-08 22:51
SandipG 7-Sep-08 22:51 
QuestionInitializing class from it's name - Standard C++ Pin
N a v a n e e t h7-Sep-08 21:05
N a v a n e e t h7-Sep-08 21:05 
QuestionRe: Initializing class from it's name - Standard C++ Pin
CPallini7-Sep-08 21:33
mveCPallini7-Sep-08 21:33 

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.