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
 Wic implementation instead of DCRAWlib
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

obviousidea

France
5 Posts

Posted - Jun 21 2011 :  04:02:52  Show Profile  Reply
As stated in another thread, as we are back to a paid subscription, I would like to know if you could plan to add Wic support directly in ImageEn as an alternative for DCRAWLib, it could make the support of raw file with correct color, as the system can read them when it is installed ( or when a generic wic codec is installed )

it's not really complex to do, but it would be better to have an integrated support instead of patching and adding a new layer to support wic in the code.



photo apps
http://www.obviousidea.com

fab

1310 Posts

Posted - Jun 21 2011 :  04:17:20  Show Profile  Reply
Hello,
WIC is already supported by ImageEn.
Please look at TIEWICReader and TIEWICWriter classes.

Using that classes you should be able to handle all installed formats. ImageEn uses them to handle HDP files in TImageEnIO and TImageEnMIO.
Go to Top of Page

obviousidea

France
5 Posts

Posted - Jun 21 2011 :  04:23:42  Show Profile  Reply
mmm... so you need to tell me more about we "activate" these class to have the basic component able to read a "wic" format


photo apps
http://www.obviousidea.com
Go to Top of Page

fab

1310 Posts

Posted - Jun 21 2011 :  04:30:59  Show Profile  Reply
This is an example from the help file:


// loads input.hdp in ImageEnView1, the same of ImageEnView1.IO.LoadFromFile('input.hdp')
with TIEWICReader.Create do
begin
  Open('input.hdp', ioHDP);
  GetFrame(0, ImageEnView1.IEBitmap, ImageEnView1.IO.Params);
  Free;
end;
ImageEnView1.Update;
Go to Top of Page

phil

1 Posts

Posted - Jun 21 2011 :  11:47:02  Show Profile  Reply
Hi,

I would like to suggest a nice addition for WIC loading. As you may know, WIC can defer loading to speed up the process. A small example:
You load a large JPEG, and then scale it down to screen resolution. WIC doesn't do anything yet. It will wait until you acquire the image, and then determine that half size will be enough, load only that, and then resize.

Basically, all that's needed is to scale (using a WICBitmapScaler) to a desired size after loading, before converting to IEBitmap.

Do you think you might implement something like this, Fabrizio?
Go to Top of Page

obviousidea

France
5 Posts

Posted - Jun 21 2011 :  12:22:16  Show Profile  Reply
Phil is right, it is exactly what I meant by suggesting a better integration of wic, not only you would add more format supported, but the load speed could be blasting fast. and in the same time it is almost transparant for developper.

I would really happy to pay for this feature,it is possible easily with .net framework ( WPF ) ?
but with Delphi I really don't see how to do it.





photo apps
http://www.obviousidea.com
Go to Top of Page

fab

1310 Posts

Posted - Jun 21 2011 :  12:38:15  Show Profile  Reply
>WIC doesn't do anything yet. It will wait until you acquire the image, and then determine that
> half size will be enough, load only that, and then resize.

for jpegs it is already done by ImageEn. For example TImageEnMView (when loads thumbnails instead of full images) loads reduced size of the image, instead of the full image.
You can replicate a similar mechanism with TImageEnView, but only for jpegs.

Anyway this doesn't exclude that WIC integration will be not improved in future.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: