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
 Text in Image appears blurry. Image is much clearer when made into a jpg?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - May 27 2024 :  22:32:47  Show Profile  Reply
First Image below is of a bitmap viewed in an ImageEnView. Second image is of this same bitmap converted to a Jpeg and viewed in a browser. Images are displayed at the same resolution.

Can't figure out why the text in the bitmap is blurry compared to the same text in the Jpeg. Tried anti-aliasing but it did not help much. Regards, your help is much appreciated.



xequte

38610 Posts

Posted - May 27 2024 :  23:28:01  Show Profile  Reply
Hi

When the bitmap is first displayed in the TImageEnView (before saving to JPEG), what is its PixelFormat (ImageEnView1.IEBitmap.PixelFormat)?

What are the values for ImageEnView1.Zoom and ImageEnView1.ZoomFilter?

http://www.imageen.com/help/TImageEnView.ZoomFilter.html

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

john_siggy@yahoo.com

USA
158 Posts

Posted - May 28 2024 :  09:52:06  Show Profile  Reply
The parameters are:

ImageEnView.Zoom = 45%
ImageEnView.ZoomFilter = Tried several with no improvement
ImageEnView.bitmap.PixelFormat = pf24Bit
Go to Top of Page

john_siggy@yahoo.com

USA
158 Posts

Posted - May 28 2024 :  10:07:00  Show Profile  Reply
To clarify, the bitmap is zoomed at %100 when jpeg is created from the bitmap. Image viewed in an ImageEnMView are clearer then when displayed in an ImageEnView ?? Is there a way to specify Zoomfilter for ImageEnMView ?
Go to Top of Page

xequte

38610 Posts

Posted - May 28 2024 :  21:37:53  Show Profile  Reply
Hi

Yeah, I'm not sure what is happening here. The top image definitely looks to be displayed at zoom without any zoom filter applied.

Can you send me a sample image, and give me the exact steps to reproduce what you are seeing.

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

john_siggy@yahoo.com

USA
158 Posts

Posted - May 29 2024 :  11:13:56  Show Profile  Reply
Attached please find an image that looks blurry when viewed in ImageenView. Yes, the problem seems to be the zoom filter is ignored by some ImageEnViews. Have two ImageEnViews, one of them accepts the filter while the other ignores it.

If can't figure out problem, am going to replace ImageEnView with an ImageEnMView with a single image. ImageEnMView seems to have a zoom filter default as the image is much clearer than with the sibling control. Is there indeed a default zoom filter on ImageEnMView, Can ZoomFilter be set for an ImageEnMView?
Go to Top of Page

john_siggy@yahoo.com

USA
158 Posts

Posted - May 29 2024 :  11:34:36  Show Profile  Reply
"Solved" the problem:
ImageEnView1.ZoomFilter := rfLanczos3;
// This makes it work ???
ImageEnView1.LayersFastDrawing := iefNormal;

Would still like to know if ImageEnMView uses ZoomFilter and how can I change it?
Go to Top of Page

xequte

38610 Posts

Posted - May 29 2024 :  23:44:02  Show Profile  Reply
Hmmm, by default LayersFastDrawing should be iefDelayed and only used if you are in "Layer Editing Mode" (e.g. have multiple layers or have manipulated layer 0 like a layer), so you should not have had an effect in a normal image viewing mode, and if it did, then it should snap into high quality mode after a short delay.

If that is not what you saw, then it would be a bug.

What was the value of LayersFastDrawing before? Do you have multiple layers?


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

xequte

38610 Posts

Posted - May 29 2024 :  23:46:08  Show Profile  Reply
The Zoom Filter for TImageEnMView is controlled by:

http://www.imageen.com/help/TImageEnMView.ThumbnailDisplayFilter.html
http://www.imageen.com/help/TImageEnMView.ThumbnailResampleFilter.html

The options have slightly different applicability depending on the way the control is filled and your thumbnail settings.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: