ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Save Tiff File Error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

supersk

99 Posts

Posted - Jul 24 2015 :  04:29:37  Show Profile  Reply
I want to save an image to a tiff files as 8 bits and 16 bits, my code as follow:
switch (ImgFmtType) {
	case 0:	//8#20301;TIFF
		imgTmpNavi->IO->Params->BitsPerSample = 8;
		imgTmpNavi->IO->Params->SamplesPerPixel = 1;
		imgTmpNavi->IO->Params->TIFF_DocumentName = "CT";
		imgTmpNavi->IO->Params->TIFF_Compression = ioTIFF_UNCOMPRESSED;
		imgTmpNavi->IO->SaveToFileTIFF(ImgFileName);
		break;
	case 1:	//16#20301;TIFF
		imgTmpNavi->IO->Params->BitsPerSample = 16;
		imgTmpNavi->IO->Params->SamplesPerPixel = 1;
		imgTmpNavi->IO->Params->TIFF_DocumentName = "CT";
		imgTmpNavi->IO->Params->TIFF_Compression = ioTIFF_UNCOMPRESSED;
		imgTmpNavi->IO->SaveToFileTIFF(ImgFileName);
		break;

but I get same result, why? What's wrong? Thank you!

xequte

38616 Posts

Posted - Aug 03 2015 :  21:37:09  Show Profile  Reply
Hi

I can reproduce and it looks to be a bug. We are investigating.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: