Welcome, Guest. Please Login or Register.
YaBB - Yet another Bulletin Board
Sep 9th, 2010, 6:21am
News: YaBB is sponsored by XIMinc!


Pages: 1
some thing about CxImageTIF ::TIFFOpenEx(FILE*) (Read 1508 times)
luoxin
YaBB Newbies
*


I Love YaBB 2!

Posts: 9
Gender: male
some thing about CxImageTIF ::TIFFOpenEx(FILE*)
Dec 5th, 2008, 9:55am
 
I used the class of CxImageTIF .There is  some codes of my program below:
 
FILE* pfile;
pfile=fopen(filepath,_T("rb"));
TIFF * ptiff;
CxImageTIF *imagetifcx;
imagetifcx=new CxImageTIF;
ptiff=imagetifcx->TIFFOpenEx(pfile);
 
Then I use  "MessageBox(ptiff->tif_name); "to show the file name;But failed.
Is there anything wrong in my codes?
 
Help.  
 
Back to top
 
 
Email   IP Logged
Davide
YaBB Moderator
*****




Posts: 561
Re: some thing about CxImageTIF ::TIFFOpenEx(FILE*
Reply #1 - Dec 16th, 2008, 8:10pm
 
are you using an old version?
The right code for CxImage version 6 is:
Code:
	CxIOFile file; 
	file.Open("d:\\1.tif",_T("rb")); 
	TIFF * ptiff; 
	CxImageTIF *imagetifcx; 
	imagetifcx=new CxImageTIF; 
	ptiff=imagetifcx->TIFFOpenEx(&file);  

Back to top
 
 
WWW   IP Logged
Pages: 1