I am not able to open a .jpg file, which in a CMYK color mode. How to provide support for such files?
ReplyOriginally posted by: bassem
your work is great, i hope you all the success
can you help me please in converting an image to a matrix?
have you any ideas about image watermarking? i need to insert some Data in an image..
thanks a lot in advance, and good day Mr
Originally posted by: Edmond Chui
It really helps me to learn how to display GIF in Windows application.
ReplyOriginally posted by: Raymond Lai
Dear Sir,
I want to make a little program that can show all the bitmaps in a specific directory, like a photo browsing software.
But i don't know how to do it. I just know how to open a file dialog box to choose the folder only. I don't know how to display a bitmap file on a static control(Frame control).
and i don't know how to create it dainamically, as i don't know there are how many pictures in the folder.
Can you send me the project and teach me how to do so?
Thanks alot !!
Have a nice day
Raymond
I know how to display the bmp file on dialog box .But i have never displayed it on a static control.If u want to display a bmp on a static control then use Create() method of a CStatic object this way... CStatic st; st.Creat(NULL,WS_CHILD|WS_VISIBLE|SS_BITMAP,CRect(10,10,400,400),this); //Code to display the bmp //szFileName is the name of bmp file HBITMAP hBmp = (HBITMAP)::LoadImage(NULL,szFilename,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION); CBitmap bmp; bmp.Attach(hBmp); CClientDC dc(this); CDC bmDC; bmDC.CreateCompatibleDC(&dc); CBitmap *pOldbmp = bmDC.SelectObject(&bmp); BITMAP bi; bmp.GetBitmap(&bi); dc.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY); bmDC.SelectObject(pOldbmp); ::DeleteDC(bmDC); ::DeleteObject(pOldbmp);Reply
Originally posted by: zhscx
Can yon provide the recourse code of "*.img" format for me .
Thank you very much!
Originally posted by: abhinav tripathi
its cool but can you tell how to do the same in straight c/c++ code (non mfc)so it would be suitable for me...
ReplyOriginally posted by: OMEGASquad
Great program, you need to copy all these requested *.lib Files from the installation CD into the /LIB directory on your hraddrive, but when it's done you've got a real nice working program, good work boys...
Reply
Originally posted by: Francis Leca
First i would to thank warmly Chen Su for his great code.
It is very easy to get rid of the assertion failure when compiling the project under win98.
Just change the project settings from Win32 Unicode Debug to Win32 Debug.
That's all !
ReplyOriginally posted by: spe@ker
Hi from Russia!
Reply
Originally posted by: Grace
I encounter this error during linking, it says "Fatal error link LNK1104: Can't open file mfc42ud.lib"
I have resolve this problem already, i just re install my Visual Studio and include all the tools.