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

pierrotsc

USA
499 Posts

Posted - Feb 27 2018 :  16:03:13  Show Profile  Reply
Can you save in a 16 bit per channel format ? I loaded a few full app demo and I am able to load 16 bit per channel TIFF file that came from a RAW file. When i save them back and load them into photoshop, they are 8 bits per channels.
Maybe the photo full app convert them but I do not see any conversion code.
I am just wondering
Thanks

xequte

39061 Posts

Posted - Feb 28 2018 :  13:52:00  Show Profile  Reply
Hi

Have you enabled NativePixelFormat?

https://www.imageen.com/help/TImageEnIO.NativePixelFormat.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Feb 28 2018 :  14:02:39  Show Profile  Reply
I do have the nativepixelformat set to true in my oncreate event. And legacybitmap is set to false in the component.

Let me do more checking with some simple demos if it is supposed to work.
Thanks
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Feb 28 2018 :  16:02:18  Show Profile  Reply
I downloaded the photoen source. I added iamgeenview1.io.nativepixelformat := true to the oncreate childwin event.
I loaded the 48 bit PSD file and saved it back. from 16bit per channels, it goes back to 8 bit per channel.
Go to Top of Page

xequte

39061 Posts

Posted - Mar 01 2018 :  17:28:24  Show Profile  Reply
Please upload or email your sample image.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Mar 01 2018 :  19:39:39  Show Profile  Reply


attach/pierrotsc/201831193859_16bit.zip
23.75 KB

here you go..it is a blank image. just 16 bit per channel.
Go to Top of Page

xequte

39061 Posts

Posted - Mar 04 2018 :  19:19:16  Show Profile  Reply
Hi

I tried both the following methods:

  bmp := TIEBitmap.Create();
  bmp.ParamsEnabled := True;
  bmp.Params.NativePixelFormat := True;
  bmp.read( 'D:\16bit.psd');
  bmp.write( 'D:\16bitDONE.psd');
  bmp.free( );

  ImageEnView1.IO.NativePixelFormat := True;
  ImageEnView1.IO.LoadFromFile( 'D:\16bit.psd');
  ImageEnView1.IO.SaveToFile( 'D:\16bitDONEIE.psd');


In both cases it appears to be correctly saving the PSD file with 16bits per channel (although I don't have PSD on this system to double-check).

attach/xequte/20183419199_IE_Saved_PSD.zip
11.83 KB

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Mar 05 2018 :  11:31:54  Show Profile  Reply
Indeed. let me dig into my code then. Got to be doing something wrong somewhere.
Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: