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

Notification

Icon
Error

Options
Go to last post Go to first unread
Emerson Sepia  
#1 Posted : Thursday, April 30, 2009 5:24:03 AM(UTC)
Emerson Sepia

Rank: Newbie

Groups: Member
Joined: 4/28/2009(UTC)
Posts: 9

Please, who know and want to respond, simply identify the answer with the same number of
question.


All questions are on the Multilayer:

01-How can I then add the files to maintain an identification of that, and editions for
other actions
02-After having identified the image, how do I add actions to click open a new
window (as an editor)
02-can change the image and then update?
03-I want to save a project without the pictures include the serialization, only with reference
pictures?
04-component has control of pages? or is to temporarily save the session and clear the
component to the next page and so on
05-or not taking control of page, can I send several sessions for serialization and generating a
only file?
06-there is some kind of compression in the file generated, or must be done by outside
component?
07-component that can merge images to create images with masks?
08-can identify the image when dragging an image on it it is subistituida
dragged by the new image?
09-can put an image in a context menu?

I put some pictures of the reference item 7.



may be that some questions are redundant, but I tried to express the
best way



Thanks
Emerson Sepia attached the following image(s):
original.JPG
result.JPG
Dmitry  
#2 Posted : Sunday, May 3, 2009 3:06:25 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Emerson wrote:
01-How can I then add the files to maintain an identification of that, and editions for
other actions

To insert an image to MultilayerViewer you need to create instance of ImageVObject class. This class contains Tag property, you can store a path to image file there.
Emerson wrote:
02-After having identified the image, how do I add actions to click open a new
window (as an editor)

It is quite simple. You click “Edit button”, get currently selected ImageVObject, extract original path from Tag property and load this image into your editor. After a user completes editing, you resave this image (replace the previous one or save another copy), delete previous ImageVObject instance from MultiLayerViewer, create new ImageVObject based on new edition of the image, and insert it to MultiLayerViewer.
Emerson wrote:
02-can change the image and then update?

The way is the same as described in the previous question.
Emerson wrote:
03-I want to save a project without the pictures include the serialization, only with reference
pictures?

Unfortunately Vector Objects does not support it, nevertheless you can do serialization by yourself in your project, you just need to walk through all ImageVObject instances, get their settings and save them to XML file, for example.
Emerson wrote:
04-component has control of pages? or is to temporarily save the session and clear the
component to the next page and so on

You are right, you need to reinitialize content of the control when you switch to the next page.
Emerson wrote:
05-or not taking control of page, can I send several sessions for serialization and generating a
only file?

If you implement your own serialization, you can take your XML file where you save templates, extract images and transformations applied to them, load images to memory, apply transformations and stitch them all together. In this case you need to implement overlaying algorithm by yourself. Another way is to load template to the control (the control can be invisible) and call to RenderWorkspace method.
Emerson wrote:
06-there is some kind of compression in the file generated, or must be done by outside
component?

Yes, it should be done outside of components.
Emerson wrote:
07-component that can merge images to create images with masks?

If you mention the sample images attached to the post, you just need to create image mask with transparency and add it to MultiLayerViewer as additional ImageVObject. The way how to do it you can find in the Overlaying Images article.
Emerson wrote:
08-can identify the image when dragging an image on it it is subistituida
dragged by the new image?

Yes, you can do it, see multilayer vs drag-n-drop post.
Emerson wrote:
09-can put an image in a context menu?

If you mean to add a command to context menu allowing to insert new image to MultiLayerViewer, it is quite simple, you just need to create context menu, and create ImageVObject instances by this command.

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Emerson Sepia  
#3 Posted : Sunday, May 3, 2009 9:18:01 PM(UTC)
Emerson Sepia

Rank: Newbie

Groups: Member
Joined: 4/28/2009(UTC)
Posts: 9

I will try to implement these tips, and back to show the result, thank you so much
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.