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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 16bit TIFF in TImageEnMView

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AlphaUniform Posted - May 23 2017 : 07:24:28
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
4   L A T E S T    R E P L I E S    (Newest First)
AlphaUniform Posted - Jun 07 2017 : 02:54:02
Sorry for the late reply.
Thank you Nigel this one works

Best regards
Alex
xequte Posted - May 24 2017 : 20:14:15
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
AlphaUniform Posted - May 24 2017 : 03:00:27
Hi Nigel,
no I didnt.
But I tried now, but without success.

Best regards
Alex
xequte Posted - May 23 2017 : 22:50:15
Hi Alex

Did you try calling:

img2->ReleaseBitmap(0, True);


After the code above?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com