Forums

Welcome Guest Search | Active Topics | Members

Masking VObject Options
ChingYen
Posted: Sunday, March 30, 2008 8:56:54 AM
Rank: Advanced Member
Groups: Member

Joined: 3/3/2008
Posts: 47
Points: 141
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
Posted: Monday, March 31, 2008 2:06:58 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
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).


Best wishes, Alex.
Alex Kon
Posted: Wednesday, April 30, 2008 10:25:55 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
Hello,

Please, take a look at Fill polyline VObject with image code sample, I think it maybe useful for such task.


Best wishes, Alex.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.