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

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Sunday, March 30, 2008 12:56:54 AM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

I am trying to create some template by using the multi layer viewer, and create of imangeVobject ready. The user may drag their photo onto the multi layer viewer to replace the "container" by using the hit test method.

Everything were fine until we plan to do some odd shape template. Please refer to the attached photo.

The only way i could think of now is, creating some mask, so that the add shape will be replaced by transparent image.

But, we are facing the problem with
1. The hit test won't work well anymore, as they may drag something on top of the transparent layer, and replace the wrong VObject.

2. The user still able to resize the VObject, thus the preset mask might not run into proportional correctly.

Please advice.

ChingYen attached the following image(s):
sample.jpg
Alex Kon  
#2 Posted : Sunday, March 30, 2008 6:06:58 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hi,

Yeap, it is really interesting task! At a first glance I see only 2 possible ways.

1) You may try to use PolylineVObject together with System.Drawing.TextureBrush. You may turn off the feature of moving separate points, so it will be solid object with correct hit-test. But there are maybe some problems with the origin point of texture and with memory consumption.

2) Another way is to write custom vector object. In such case you will be absolutely free in implementation, but I think that it will be considerably complicated task.

And I wonder how you are going to specify such templates? They will be predefined in your application, or there will be some sort of special editor? (If you do not want to discuss these questions on forum - please submit case).

Edited by user Thursday, May 22, 2008 2:05:36 PM(UTC)  | Reason: Not specified

Alex Kon  
#3 Posted : Wednesday, April 30, 2008 2:25:55 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

Please, take a look at Fill polyline VObject with image code sample, I think it maybe useful for such task.
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.