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

Notification

Icon
Error

Options
Go to last post Go to first unread
mzhao  
#1 Posted : Friday, May 24, 2013 1:15:41 PM(UTC)
mzhao

Rank: Advanced Member

Groups: Member
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times
Hello,

We have need your help for the following situation about zoom feature of MultiLayerViewer:

We have a MultiLayerViewer1 with some ImageVObjects on it

1. we do following

MultiLayerViewer1.ZoomMode = ZoomMode.None;

MultiLayerViewer1.Zoom = 0.95

System.Drawing.Bitmap _image= MultiLayerViewer1.RenderWorkspace();

2. we then do following

MultiLayerViewer1.ZoomMode = ZoomMode.None;

MultiLayerViewer1.Zoom = 0.25

System.Drawing.Bitmap _image2= MultiLayerViewer1.RenderWorkspace();

but both _image and _image2 are the same and no zooming happens. What should we do so that zooming can happen when to do RenderWorkspace?

Thank you.

vitaly  
#2 Posted : Sunday, May 26, 2013 10:10:39 PM(UTC)
vitaly

Rank: Advanced Member

Groups:
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hi,

If you need get image with max width or height is 250px you should use following code.

Code:



var size = 250;

// MultiLayerViewer1 is an Canvas.
var dpi = size * 72 / Math.Max(MultiLayerViewer1.WorkspaceWidth, MultiLayerViewer1.WorkspaceHeight);

var img250 = MultiLayerViewer1.RenderWorkspace(dpi, ColorSpace.Rgb, RgbColor.White);
Best regards,

Vitaly Kustov

Aurigma Technical Support

mzhao  
#3 Posted : Tuesday, May 28, 2013 12:55:40 PM(UTC)
mzhao

Rank: Advanced Member

Groups: Member
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times
Hello,

we use Aurigma Graphics Mill 5.5 but do not see this overloaded RenderWorkspace method for

MultiLayerViewer.

Thank you.

vitaly  
#4 Posted : Wednesday, May 29, 2013 1:19:45 AM(UTC)
vitaly

Rank: Advanced Member

Groups:
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hi,

I am sorry. Could you try to use following method with parameter to get bitmap.

Code:
MultiLayerViewer.RenderWorkspace Method (Single)
Please find more information here: http://www.aurigma.com/d...Workspace_1_7a94462e.htm
Best regards,

Vitaly Kustov

Aurigma Technical Support

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.