How to improve shadow rendering

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

How to improve shadow rendering

Post by jgkoehn »

Greetings Sergey,
How can I improve the shadow rendering quality behind an image.
(Also can I possibly improve image sharpness/smoothness?)
RVF 18.3 show this:
RVF-shadow.jpg
RVF-shadow.jpg (166.28 KiB) Viewed 15091 times
Original is more like this:
WordPad-shadow.jpg
WordPad-shadow.jpg (98.42 KiB) Viewed 15091 times
Sergey Tkachenko
Site Admin
Posts: 17556
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to improve shadow rendering

Post by Sergey Tkachenko »

What's the image format? Please send me this image, or this RVF file.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: How to improve shadow rendering

Post by jgkoehn »

I see you already answered this here: https://www.trichview.com/forums/viewtopic.php?t=89

We are still playing with it but this seems to help a lot. (I'm using Delphi7)
Sergey Tkachenko
Site Admin
Posts: 17556
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to improve shadow rendering

Post by Sergey Tkachenko »

Is this picture scaled?
In the current version of TRichView, the components provide smooth scaling of images, but only for opaque images.
If the image is semitransparent (it looks like your image is a PNG image with alpha channel, am I right?), TRichView uses the standard image scaling (the image is drawn using PngImage.StretchDraw).
Post Reply