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
 Advice on Best Way to Create ThumbNails in Thread
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sparkz

United Kingdom
8 Posts

Posted - Mar 01 2016 :  07:55:35  Show Profile  Reply
I have a program which creates thumbnails in a thread, which works fine but I'm not getting very good image quality. I'm not sure if this is to do with the way I'm doing it or it's a limitation of the software.

  bmp: TIEBitmap;
...
  bmp.IELoadFromFile(sFile);
  bmp.IEConvertToThumbnail(iThumbWidth, -1, False, iResampleFilter, False, 0, False, 0, 0, 0, 0);
  bmp.IESaveToStream(ThumbStream, ioJPEG, iJPGQuality);

I've tried all the filter types but all have various levels of pixelation. Before ImageEn I used Graphics32 and the Intel jpeg dll (ijl20.dll) and never got any noticeable pixelation and was very quick.

Is there a way to get better quality?

Thanks
Mark

xequte

39053 Posts

Posted - Mar 02 2016 :  03:02:44  Show Profile  Reply
Hi Mark

There should be no pixelation if your JPEG quality is reasonable, and you use a resample filter, assuming you are displaying at 100%.

Please change IESaveToStream to IESaveToFile and attach a few examples.



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

sparkz

United Kingdom
8 Posts

Posted - Mar 03 2016 :  15:22:27  Show Profile  Reply
Thanks Nigel. Actually, the problem seems to be with the way I'm displaying it.

If I save it to a file the actual thumbnail is ok when I look at it externally.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: