custom zooming and screen resolution [message #204038] |
Tue, 29 November 2005 22:17 |
Eclipse User |
|
|
|
Originally posted by: clmind.yahoo.com
Hi
I need some advice for some zoom implementation details... Basically, I have
my model coordinate system (measured in "units"), and the Eclipse coordinate
system (measured in 'pixels'). Units are about 15x smaller than pixels at
96 dpi and 12x smaller at 120 dpi, two common screen resolutions. To do
this, I'm using ZoomManager's UIMultiplier setting to make 100% actually
render at 1/15th the size so it's as if I'm rendering in pixels (and things
look the right size)
Here are the questions:
1. Is there an event I can hook into in Eclipse to update the ZoomManager's
UIMultiplier when the screen resolution changes?
2. Is there a "proper" way to have text rendered properly when a UI
multiplier is used, (hopefully without having to do another pixel-unit
conversion)? My non-text objects look correct because the ZoomManager takes
care of coordinate-related stuff; however, the font size used for text
rendering is affected by this as well, so I end up with text rendered at
1/15th the size it should be.
Chris
|
|
|
Re: custom zooming and screen resolution [message #204211 is a reply to message #204038] |
Thu, 01 December 2005 05:22 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You pretty much just have to take the Control's default font, and scale it
by the UI multipler.
When the resolution changes, the DPI does not necessarily change. I think,
if you change the DPI setting for windows, it usually asks you to reboot. It
affect all of the system fonts.
"Christine Lee" <clmind@yahoo.com> wrote in message
news:dmik2s$boa$1@news.eclipse.org...
> Hi
>
> I need some advice for some zoom implementation details... Basically, I
> have
> my model coordinate system (measured in "units"), and the Eclipse
> coordinate
> system (measured in 'pixels'). Units are about 15x smaller than pixels at
> 96 dpi and 12x smaller at 120 dpi, two common screen resolutions. To do
> this, I'm using ZoomManager's UIMultiplier setting to make 100% actually
> render at 1/15th the size so it's as if I'm rendering in pixels (and
> things
> look the right size)
>
> Here are the questions:
> 1. Is there an event I can hook into in Eclipse to update the
> ZoomManager's
> UIMultiplier when the screen resolution changes?
>
> 2. Is there a "proper" way to have text rendered properly when a UI
> multiplier is used, (hopefully without having to do another pixel-unit
> conversion)? My non-text objects look correct because the ZoomManager
> takes
> care of coordinate-related stuff; however, the font size used for text
> rendering is affected by this as well, so I end up with text rendered at
> 1/15th the size it should be.
>
> Chris
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02794 seconds