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 : Sunday, September 5, 2010 1:58:31 PM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
Hello.... I am doing project in C#(win) with aurigma graphicmills, can i able to duplicate objects in multilayerviewer? actually, i wana get the object and its properties( if rectange, i want height,width,penwidth ..etc...) and made the same copy of the object with out redrawing in the multilayer viewer? can i able to duplicate the layer with its objects ? pls help me with sample codes........

Edited by user Sunday, September 5, 2010 6:49:41 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : Monday, September 6, 2010 4:28:53 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,

Unfortunately, duplication of objects is not supported by Graphics Mill.

However, you are able to save a layer and all its objects as serialized data, using the Layer.Serialize() method. A layer will be saved completely with its objects.
Then you сфт deserialize this layer and its objects. To do it you should use the Layer.Deserialize() method.

If you have additional questions or some problems, please feel free to let me now.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Noufal123  
#3 Posted : Monday, September 6, 2010 5:42:29 PM(UTC)
Noufal123

Rank: Advanced Member

Groups: Member
Joined: 3/29/2010(UTC)
Posts: 81

Thanks: 10 times
Hello... how can i save one layer to another by using "Layer.Serialize()"? pls help me with sample codes.. quick...

Edited by user Monday, September 6, 2010 6:02:56 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#4 Posted : Tuesday, September 7, 2010 5:04:20 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,

To save a layer as a serialized data you should use variable of Stream class type. Here is sample how to do it:
Code:

System.IO.FileStream str = new System.IO.FileStream("Path to file", System.IO.FileMode.Create); 
multiLayerViewer1.Layers[0].Serialize(str);

Let me know if you have any other questions.
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.