Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Issue with MultiLayerViewer on large fonts (120 DPI)
Rank: Member
Groups: Guest
Joined: 9/7/2008(UTC) Posts: 19
|
Hi, I have trouble when working with large fonts (120 DPI). I have MultiLayerViewerControl and add ImageVObject on it. Before adding ImageVObject on mlv control I resize it to mlv size (see code below): Code:// bmp is Aurigma.GraphicsMill.Bitmap loaded from file
// mlv - MultiLayerViewer
bmp.Transforms.Resize(mlv.WorkspaceWidth, mlv.WorkspaceHeight);
var vObj = new ImageVObject(bmp, false, 0, 0);
mlv.Layers[CurrentLayer].add(vobj);
mlv and bmp has Unit kind of Pixel and after resizing vObj's LogicalHeight and LogicalWidth are equals to mlv Height and Width accordingly. All works fine with normal font size (96 DPI), but on large fonts ImageVObject is bigger than mlv. Where I'm wrong in this code? GM version is 4.5 Edited by moderator Monday, February 21, 2011 8:55:33 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello,
Could you please explain what you mean by font size?
|
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 9/7/2008(UTC) Posts: 19
|
I mean this settings in Win 7: "Control Panel\All Control Panel Items\Display" and select Medium or Large. On Win XP: right-click on desktop, go to properties>settings>advanced and select "Large size(120 DPI)".
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Sergey,
Okay, I see. Could you please share small sample application so that I can test it with your configurations? |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 9/7/2008(UTC) Posts: 19
|
Hello, Dmitry. I've created small program to show this issue. Just run it on normal and large font settings to see difference.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Sergey, There is an issue of MultiLayerViewer, while setting large value of display DPI. We are working on this problem. Sorry for the inconvenience. Edited by user Thursday, February 24, 2011 12:11:23 AM(UTC)
| Reason: Not specified |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 9/7/2008(UTC) Posts: 19
|
Dmitry, thanks for reply. Can you qualify approximate waiting time for this issue?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
I think in 5-7 days. I will let you know, Sergey. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Sergey, Our developer found a workaround to avoid the problem with large value of display DPI. You need to add these lines: Code:...
bmp.HorizontalResolution = MultilayerViewer.ViewerResolution;
bmp.VerticalResolution = MultilayerViewer.ViewerResolution;
...
Also, please set true value here: Code: var vObj = new ImageVObject(bmp, true, 0, 0);
I attached your sample application with this workaround. Please download and try it out. I checked it on my machine – all worked okay now. The future release of Graphics Mill will be free of this problem. If you have any additional questions, please feel free to let me know. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 9/7/2008(UTC) Posts: 19
|
Dmitry, thanks. Now all works well. And small question - is it possible to make ViewerResolution property in MultiLayerViewer class static?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Sergey,
Unfortunately, it is not possible, because this property gets the monitor resolution as it is specified in Windows settings. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Issue with MultiLayerViewer on large fonts (120 DPI)
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.