Page 1 of 1
Image Qiality
Posted: Mon Jul 09, 2012 9:45 am
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.
Posted: Mon Jul 09, 2012 11:40 am
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.
Posted: Mon Jul 09, 2012 1:06 pm
by CyberMuth
Yes i mean scaled images.
How can i use the StretchDraw function. Can you give me pleas a little example?
Posted: Mon Jul 09, 2012 2:38 pm
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.