Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SVG Content Property (Read 4217 times)
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
SVG Content Property
Nov 29th, 2010 at 4:10pm
Print Post  
Hi Stoyo
I am using mindfusion svg node and property bag to edit the properties. I am able to edit all the properties except the svg properties (for example color of the svg image).
Could you pls help me is there any way i can edit those properties?

Thanks a lot.
Muthuhamid.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG Content Property
Reply #1 - Nov 30th, 2010 at 9:14am
Print Post  
Hi Muthuhamid,

You can change only the SvgNode's background by setting its Brush property. At this time it is not possible to access the graphic objects that SvgNode creates for individual SVG elements. If you need to change them, you will have to parse the XML code for the image and set the appropriate color attributes there, and then create a new SvgContent from it and assign it back to the node.

Stoyan
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: SVG Content Property
Reply #2 - Dec 5th, 2010 at 11:20am
Print Post  
Thanks a lot.
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: SVG Content Property
Reply #3 - Dec 5th, 2010 at 11:26am
Print Post  
I am some svg file created by 3rd party which is not able to load by mindfusion libraries and mindfusion Sample Demo. I found what the issue is if am not wrong, The issue is rgb format color code as like this " <stop id="stop3083" offset="0" style="stop-color: rgb(255, 255, 255); stop-opacity: 1;" /> " rgb(255, 255, 255)
If i give #123; formate it works fine. could you pls help me how can i fix this issue?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG Content Property
Reply #4 - Dec 6th, 2010 at 8:59am
Print Post  
Does it throw an exception or the color is not displayed correctly? We added support for colors in rgb() format last year, what version of the control are you using now?
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: SVG Content Property
Reply #5 - Dec 6th, 2010 at 9:37am
Print Post  
I am using mindfusion 3.3.
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: SVG Content Property
Reply #6 - Dec 6th, 2010 at 9:41am
Print Post  
"Does it throw an exception or the color is not displayed correctly?"

I am loading the my simple svg file by mindfusion demo tool (ie. Create SVG Node) it loads the svg content but no effects works(effects = Gradiant color) and i pasted the entire content of the svg file down here FYR...

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">

<defs>
<radialGradient id="grey_blue" cx="20%" cy="40%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:0"/>
<stop offset="100%" style="stop-color:rgb(200,200,200);stop-opacity:1"/>
</radialGradient>
</defs>

<ellipse cx="110" cy="100" rx="110" ry="100"
style="fill:url(#grey_blue)"/>

</svg>



Thanks
Muthuhamid
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG Content Property
Reply #7 - Dec 6th, 2010 at 12:06pm
Print Post  
When placed on white background, this svg looks pretty much as in Firefox in my test. What Flowchart.NET version are you using?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG Content Property
Reply #8 - Dec 6th, 2010 at 12:40pm
Print Post  
I don't think SvgNode was available in version 3.3. If you mean 5.3.3, it is still more than an year old so please try the latest release.
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: SVG Content Property
Reply #9 - Dec 6th, 2010 at 12:48pm
Print Post  
Am so sorry.. it is 5.3 am using....
Very sorry again.

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