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

Notification

Icon
Error

Options
Go to last post Go to first unread
Noufal123  
#1 Posted : Tuesday, April 26, 2011 8:24:52 PM(UTC)
Noufal123

Rank: Advanced Member

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

Dmitry.Obukhov  
#2 Posted : Wednesday, April 27, 2011 2:35:17 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
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.
Noufal123  
#3 Posted : Wednesday, April 27, 2011 5:21:03 AM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
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 ..
Dmitry.Obukhov  
#4 Posted : Thursday, April 28, 2011 8:44:14 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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