Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 12/19/2012(UTC) Posts: 164
Was thanked: 8 time(s) in 8 post(s)
|
|
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
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.