PNG and JPEG images

General TRichView support forum. Please post your questions here
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Re: PNG and JPEG images

Post by csterg »

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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: PNG and JPEG images

Post by Sergey Tkachenko »

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.
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Re: PNG and JPEG images

Post by csterg »

Seems like most graphics implementation do a really bad job here. Its good to know, thanks
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Re: PNG and JPEG images

Post by csterg »

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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: PNG and JPEG images

Post by Sergey Tkachenko »

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.
csterg
Posts: 306
Joined: Fri Nov 25, 2005 9:09 pm

Re: PNG and JPEG images

Post by csterg »

OK, i will try that out, thanks for the tip
Post Reply