VoyForums

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345[6]78910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 04:57:51 02/09/02 Sat
Author: glub
Subject: Re: Fax TIFF in Fine Mode
In reply to: Michel 's message, "Re: Fax TIFF in Fine Mode" on 20:20:13 02/05/02 Tue

I have now looked deeper in:

It seams that TDibGraphic sets the X- and Y-Resolution of the DC correct, but if anyhow these values for the DC of the Form (actual the Monitor) are different, the aspect ratio of the displayed version of the graphic is not correct.
Beside I would expect that the OS/GDI cares for this (would be a part of a "real" device _independent_ bitmap) I see two possible solutions:

1. I create for each DC I want to show the Dib on a "new" Dib with a aspect ratio changed to the ratio of the DC. This would ask for a TAspectRatioTransform.

2. Everytime the TDibGraphic has to draw itself into a Cavas where the aspect ratio is different than the the own, it changes the aspect ratio "on-the-fly" with StretchBlt resp. StretchDIBits.

The last version would be the more apealing I belive, but I see problems if code is asking for width and height. To solve this these both properties should !!!not!!! provide the sizes in pixel, but in mm, cm, inch, point or what-so-ever that is independent from the aspect ratio!

Shouldn't option 2 with the change to the height and width property be implemented in TDibGraphic?

Rgds

Glup

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.