Rank: Advanced Member
Groups: Guest
Joined: 3/29/2010(UTC) Posts: 81
Thanks: 10 times
|
Hello... I am creating a bitmap from MultilayerViewer using following code, Aurigma.GraphicsMill.Bitmap bitmap = MultiLayerbmpViewer.RenderWorkspace(); Bitmapvewer1.Bitmap.Create(Aurigma.GraphicsMill.RgbColor.Transparent, bitmap.Width, bitmap.Height, Aurigma.GraphicsMill.PixelFormat.Format24bppRgb); bitmap.Draw(Bitmapvewer1.Bitmap, 0, 0, Aurigma.GraphicsMill.Transforms.CombineMode.Alpha); Then its creat an image ,but its height and width are different from Multilayer workspace width and height. when creating 1024 x 768 (Multilayer workspace width & height) its generate 1365 x 1024 image.. How can i set the same size with out resizing the bitmap? pls help me soon... Edited by user Tuesday, April 26, 2011 8:25:44 PM(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, You should use RenderWorkspace (Single) method and set Single to 72: Code:Aurigma.GraphicsMill.Bitmap bitmap = MultiLayerbmpViewer.RenderWorkspace(72);
…
In this case, width/height of created bitmap is the same as width/height of multilayer workspace (1024x768). I checked it, and it worked okay for me. Edited by user Wednesday, April 27, 2011 2:36:21 AM(UTC)
| Reason: Not specified |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/29/2010(UTC) Posts: 81
Thanks: 10 times
|
Hello.. How can i select an object (Ellips,Rectangle, Polyline.........) from multilayerviewer by using code with objects index? pls help me ..
|
|
|
|
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,
Unfortunately, it is not possible to do it programmatically. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
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.