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
 16bit TIFF in TImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AlphaUniform

30 Posts

Posted - May 23 2017 :  07:24:28  Show Profile  Reply
Hi there,
I can load 16Bit TIFF via:

img->IO->NativePixelFormat = false;
img->IO->LoadFromFile("D:\\16bit.tiff");
img->IEBitmap->AutoCalcBWValues();



But if I want to append this Image to a TImageEnMView it remains blank.


img2->AppendImage(img->IEBitmap);


Also

img2->MIO->NativePixelFormat = false;
img2->MIO->LoadFromFile("D:\\16bit.tiff");
TIEBitmap *b = img2->GetTIEBitmap(0);
img2->GetTIEBitmap(0)->AutoCalcBWValues();

remains blank.


Can anyone can give me a hint, what Im doing wrong?

Thanks in advance
Alex

xequte

38615 Posts

Posted - May 23 2017 :  22:50:15  Show Profile  Reply
Hi Alex

Did you try calling:

img2->ReleaseBitmap(0, True);


After the code above?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

AlphaUniform

30 Posts

Posted - May 24 2017 :  03:00:27  Show Profile  Reply
Hi Nigel,
no I didnt.
But I tried now, but without success.

Best regards
Alex
Go to Top of Page

xequte

38615 Posts

Posted - May 24 2017 :  20:14:15  Show Profile  Reply
Sorry, please try with StretchValues to lock in the Black and white values:

img2->MIO->NativePixelFormat = false;
img2->MIO->LoadFromFile("D:\\16bit.tiff");
TIEBitmap *b = img2->GetTIEBitmap(0);
b->AutoCalcBWValues();
b->StretchValues();
img2->ReleaseBitmap(0, True);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

AlphaUniform

30 Posts

Posted - Jun 07 2017 :  02:54:02  Show Profile  Reply
Sorry for the late reply.
Thank you Nigel this one works

Best regards
Alex
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: