[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

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?



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


[ 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.