OK, I understand.
Would it be a solution to use the better scaling code for all PNG images? I read a bit about the windows algorithm and its really very simplistic, no interpolation nothing. I mean such code should never be used in modern apps, it only makes images look bad no matter what.
PNG and JPEG images
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: PNG and JPEG images
Yes, I plan to support quality scaling of semitransparent images in one of future updates.
Currently, for unsupported images, TRichView simply calls Graphic.StretchDraw, so results depend on a graphic class implimentation.
Currently, for unsupported images, TRichView simply calls Graphic.StretchDraw, so results depend on a graphic class implimentation.
Re: PNG and JPEG images
Seems like most graphics implementation do a really bad job here. Its good to know, thanks
Re: PNG and JPEG images
Is there a quick hacky way to use the old custom resizing code as you did in rv14? Until the new code comes in place. At this moment the thing seems broken when compared to previous behavior.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: PNG and JPEG images
If you want to allow resizing of transparent images, open RVThumbMaker.pas, and remove the code that checks transparency in TRVThumbnailMaker.IsAllowedFor.
But scaled images will lose transparency.
But scaled images will lose transparency.
Re: PNG and JPEG images
OK, i will try that out, thanks for the tip