Click to See Complete Forum and Search --> : BMP files to multipage TIFF file
vmthiru
March 3rd, 2008, 12:19 AM
hellow everybody!!
pls help me ..
/***This code convert BMP into single page TIFF file
CImage image;
image.Load(_T("C:\\BitmapPrntPages\\film.bmp"));
image.Save(_T("C:\\BitmapPrntPages\\tiff_image1.tif"),ImageFormatTIFF);
****/
just i want to know,
how to convert BMF file to multi-page TIFF file
share your thought's
regard's
vmthiru
CBasicNet
March 3rd, 2008, 01:20 AM
Creating and Saving a Multiple-Frame Image (http://msdn2.microsoft.com/en-us/library/ms533839(VS.85).aspx)
vmthiru
March 3rd, 2008, 06:00 AM
thanks !!
i m got it
vmthiru
March 3rd, 2008, 07:30 PM
hi,
i got error while build WDK6000 bitmap source code, after include Gdiplus.h
c:WinDDK\6000\src\print\oemdll\bitmap>build -cZ
BUILD: Compile and Link for x86
- - -
- - -
c:winddk\6000\inc\api\gdiplusimaging.h : error C2062: type 'void' unexpected
c:winddk\6000\inc\api\gdiplusimaging.h : error C2062: 'Rotate180Flipx' : undeclared identifier
c:winddk\6000\inc\api\gdiplusimaging.h : error C2062: 'Rotate270Flipx' : undeclared identifier
c:winddk\6000\inc\api\gdiplusimaging.h : error C2062: 'RotateNoneFlipx' : undeclared identifier
- - -
- - -
- - - etc
what happend after include (gdiplus.h)?
i dont know.. if u know, share your thoughts
thanks
CBasicNet
March 4th, 2008, 12:35 AM
Try putting
using namespace Gdiplus;
before any GDI+ calls.
vmthiru
March 9th, 2008, 07:42 PM
yes i m used it.
and also, i am unable to use save dialog box within the sample WDK bitmap source...
therefore... the below code is working well in Visualstudio2005, but never worked WDK6000 windows xp build environment.
ie.. how can open File save dialog window within bitmap driver source code
OPENFILENAME ofn; // common dialog box structure
char szFile[MAX_PATH]; // buffer for file name
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = NULL;
ofn.lpstrFile =(LPWSTR)szFile;
ofn.lpstrFile[0] = '\0';
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = L"*.TIFF\0ALL\0";
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = L"c:\\";
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
WIN32_FIND_DATA ffd;
TCHAR szDir[MAX_PATH];
HANDLE hFind = INVALID_HANDLE_VALUE;
DWORD dwError=0;
StringCchCopy (szDir, MAX_PATH, bmpDir);
StringCchCat (szDir, MAX_PATH, TEXT("\\*.bmp"));
GetSaveFileName(&ofn);
vmthiru
March 18th, 2008, 07:58 PM
i m used following link sample code to create multiple tiff
"http://msdn2.microsoft.com/en-us/library/ms533839(VS.85).aspx"
but, zoom problem is occured , it may be caussed tiff image size
how can i solve this prob?
what do u thik abt it?
Note : Bitmap driver created BMP file size is A4 -> 2275pix x 3300pix
CBasicNet
March 19th, 2008, 02:26 AM
You have to state clearly what zooming problem you have, so that other members or me can help you.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.