trichview.com

trichview.support




Re: Keep image resolution?


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/26/2005 23:22:36


By default, bitmaps are displayed on screen at their actual size in pixels.

RichViewPixelsPerInch affects only printing and exporting to RTF.

If it's nonzero, size_in_printer_pixels = size_in_screen_pixels *

printer_resolution / RichViewPixelsPerInch.

(if it's zero, the actual screen resolution is used).


DPI value of bitmap images is not used. They are simply drawn as


var bmp: TBitmap;

bmp.LoadFromFile(...)

Canvas.Draw(x,y, bmp);


I do not plan to add a support of bitmap resolutions, because many bitmaps

contain incorrect values there (for example, I have many bitmaps having

Mac's 72 value there)


You need to resize them yourself to the proper size - either by mouse, or by

setting rvepImageWidth, rvepImageHeight properties (see the help file on

TRVExtraItemProperty)




> I am evaluating RichView for our current application. I've played around

> with the demo for the while and most of it looks good. There is one

problem

> though, that I can't seem to get around that has to do with high

resolution

> images (around 200dpi, 1728 pixels wide). First if I just, add the image

to

> my RichViewEdit, it does not fit. If I either resize the image or change

the

> RichViewPixelsPerInch to 200dpi, the image fits but the image is jagged

when

> I print it.

>

> Is there a better way of handling high resolution images so that the image

> resolution is not lost?

>

> Regards,

> Magnus Haggren

> Enera International AB

>

>






Powered by ABC Amber Outlook Express Converter