Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
HabaHaba  
#1 Posted : Monday, February 21, 2011 7:54:32 AM(UTC)
HabaHaba

Rank: Member

Groups: Member
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

Dmitry.Obukhov  
#2 Posted : Tuesday, February 22, 2011 3:49:13 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

HabaHaba  
#3 Posted : Tuesday, February 22, 2011 4:22:30 AM(UTC)
HabaHaba

Rank: Member

Groups: Member
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)".

Dmitry.Obukhov  
#4 Posted : Tuesday, February 22, 2011 10:48:10 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

HabaHaba  
#5 Posted : Wednesday, February 23, 2011 2:15:26 PM(UTC)
HabaHaba

Rank: Member

Groups: Member
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.

File Attachment(s):
GM_LargeFonts.zip (45kb) downloaded 5 time(s).
Dmitry.Obukhov  
#6 Posted : Thursday, February 24, 2011 12:10:41 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

HabaHaba  
#7 Posted : Thursday, February 24, 2011 12:49:55 AM(UTC)
HabaHaba

Rank: Member

Groups: Member
Joined: 9/7/2008(UTC)
Posts: 19

Dmitry, thanks for reply. Can you qualify approximate waiting time for this issue?
Dmitry.Obukhov  
#8 Posted : Thursday, February 24, 2011 3:43:06 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

Dmitry.Obukhov  
#9 Posted : Tuesday, March 1, 2011 2:59:57 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

File Attachment(s):
GM_LargeFonts_Fix.zip (1,394kb) downloaded 3 time(s).
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

HabaHaba  
#10 Posted : Tuesday, March 8, 2011 11:27:04 AM(UTC)
HabaHaba

Rank: Member

Groups: Member
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?

Dmitry.Obukhov  
#11 Posted : Thursday, March 10, 2011 1:57:17 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

Users browsing this topic
Guest
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.