Image Qiality

General TRichView support forum. Please post your questions here
Post Reply
CyberMuth
Posts: 8
Joined: Fri Jul 06, 2012 11:18 am

Image Qiality

Post by CyberMuth »

Hello,

can i adjust the image qualitiy in the richview comonent?
Because the image in the twebbrowser has a better quality than in the richview component.
Sergey Tkachenko
Site Admin
Posts: 17572
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you mean scaled images?
The current version of TRichView uses Graphic.StretchDraw to display scaled images. This procedure uses a very simple scaling algorithm.
Anti-aliased algorithm is planned for future, but not very soon.
CyberMuth
Posts: 8
Joined: Fri Jul 06, 2012 11:18 am

Post by CyberMuth »

Yes i mean scaled images.

How can i use the StretchDraw function. Can you give me pleas a little example?
Sergey Tkachenko
Site Admin
Posts: 17572
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

StretchDraw is used automatically.
For example, when image is bitmap, it is loaded in bmp:TBitmap, and bmp.StretchDraw is used to display a scaled image.
Image drawing cannot be changed in the current version.

In future, we plan to generate image thumbnails using advanced scaling procedures. But, as I said, not in very near future.
Post Reply