Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drawing the wrong shapes (Read 2568 times)
castefani
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Feb 26th, 2009
Drawing the wrong shapes
Mar 9th, 2009 at 4:04am
Print Post  
1 - I am encountering a strange behavior when a shape has a small size (eg 30x30).
For example, the shape DOutDelay is truncated when the size is 30x30. The shape is RoundRect without rounded edges for small sizes.
I noticed that for a ArcTemplate to define a width, the internal dimensions remain unchanged (as defined), but the external is the increased width. Example:


            var = new RRS MindFusion.Diagramming.Silverlight.Shape (
                ElementTemplate new []
(
new ArcTemplate (0, 0, 100, 100, 0, 360, Colors.Blue, 1)
),
                null, null, FillRule.Nonzero, "testA");

            RRS = new MindFusion.Diagramming.Silverlight.Shape (
                ElementTemplate new []
(
new ArcTemplate (0, 0, 100, 100, 0, 360, Colors.Blue, 5)
),
                null, null, FillRule.Nonzero, "testB");


The shape "testA" is not fully contained within the shape. I would have to subtract its width to obtain this result (new ArcTemplate (1, 1, 98, 98, 0, 360, Colors.Blue, 1)).

The shape "testB" is even more wrong.

2 - The templates should not be drawn from outside rather than inside out? All templates follow the same logic.

3 - This behavior also occurs for the pre-defined shapes.

4 - The resolution of the templates seem to be of low quality. For small sizes this is clearly
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drawing the wrong shapes
Reply #1 - Mar 9th, 2009 at 9:46am
Print Post  
We are aware of this problem. Unfortunately Silverlight does not give us much control over clipping, but our developer is trying to find some work-around for the next release.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint