[svg-developers] Re: SVG#, examples and interactivity

2005-02-06 Thread scasquiov



 There's a conditional compilation constant named TEST in SVG#'s
source code, I think if you build the project without it you won't
need to reference nunit.framework.dll, otherwise you will.

 Regards,
 /FC


> thank for your reply. But are you sure I need to include
nunit.framework.dll in my project since I am not using nunit to do the
unit testing?
>  
>  
> PinYiow
> 
> 
> scasquiov <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi,
> 
> You need to reference the following dlls:
>   SharpVectorBindings.dll 
>   SharpVectorCss.dll  
>   SharpVectorDom.dll  
>   SharpVectorObjectModel.dll  
>   SharpVectorRenderingEngine.dll
>   SharpVectorScripting.dll  
>   SharpVectorXml.dll
>   SharpZipLib.dll   
>   SvgComponents.dll   
>   nunit.framework.dll 
> 
> and you can use a SvgComponents.SvgPictureBox to display the SVG
> image, all you need is to add one to your form and load the svg file
> when you require:
> 
>   svgPictureBox1.SourceURL = ".\\test.svg";
> 
> 
> Regards,
> /FC
> 
> 
> 
> --- In svg-developers@yahoogroups.com, alvin w <[EMAIL PROTECTED]> wrote:
> > Jeff,
> >  
> > I am using SharpVectorGraphics in my project. But I don't know how
> to use it to display an SVG file in my project. May I know which
> library should I include in the references of my project and which
> Windows Component (control) must I add in to display the SVG image.
> >  
> > PinYiow
> > 
> > 
> > Jeff Rafter <[EMAIL PROTECTED]> wrote:
> > 
> > >  Thanks for the reply. I will probably need to use the transform
> > > functions but not just yet. Meanwhile, rendering was taking to
long so
> > > I made a little digging :) ended up making a minor change with a
> > > performance gain of at least 500% in rendering my test SVG  :)  It
> > > would be great if you took a look to check if it's worth adding this
> > > change to the latest version. How would you prefer I send it to
you? 
> > 
> > Either way, on this list or directly. I am ambivalent : ) I have been 
> > gathering fixes from all over and getting ready for another commit
once 
> > I have this transform stuff working (oh so close now!). As an
aside, a 
> > lot of the performance bottlenecks are in exception creation many
> around 
> > CSS and colors. With a slight change to the CSS regex I got a 2000% 
> > increase in the debugger. It didn't make that much of a difference 
> > outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
> > without it. Then again, I am skittish about committing something so 
> > unresearched... and lately I have been typing ambilevousy.
> > 
> > All the best,
> > Jeff Rafter
> > 
> > 
> > -
> > To unsubscribe send a message to:
> [EMAIL PROTECTED]
> > -or-
> > visit http://groups.yahoo.com/group/svg-developers and click "edit
> my membership"
> >  
> > 
> > 
> > 
> > -
> > Yahoo! Groups Links
> > 
> >To visit your group on the web, go to:
> > http://groups.yahoo.com/group/svg-developers/
> >   
> >To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >   
> >Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> >  Yahoo! Search presents - Jib Jab's 'Second Term'
> > 
> > [Non-text portions of this message have been removed]
> 
> 
> 
> 
> 
> -
> To unsubscribe send a message to:
[EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit
my membership"
>  
> 
> 
> 
> -
> Yahoo! Groups Links
> 
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
>   
>To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
>   
> -
> Do you Yahoo!?
>  Yahoo! Mail - You care about security. So do we.
> 
> [Non-text portions of this message have been removed]





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: SVG#, examples and interactivity

2005-02-06 Thread alvin w

Hi FC, 
 
thank for your reply. But are you sure I need to include nunit.framework.dll in 
my project since I am not using nunit to do the unit testing?
 
 
PinYiow


scasquiov <[EMAIL PROTECTED]> wrote:


Hi,

You need to reference the following dlls:
  SharpVectorBindings.dll 
  SharpVectorCss.dll  
  SharpVectorDom.dll  
  SharpVectorObjectModel.dll  
  SharpVectorRenderingEngine.dll
  SharpVectorScripting.dll  
  SharpVectorXml.dll
  SharpZipLib.dll   
  SvgComponents.dll   
  nunit.framework.dll 

and you can use a SvgComponents.SvgPictureBox to display the SVG
image, all you need is to add one to your form and load the svg file
when you require:

  svgPictureBox1.SourceURL = ".\\test.svg";


Regards,
/FC



--- In svg-developers@yahoogroups.com, alvin w <[EMAIL PROTECTED]> wrote:
> Jeff,
>  
> I am using SharpVectorGraphics in my project. But I don't know how
to use it to display an SVG file in my project. May I know which
library should I include in the references of my project and which
Windows Component (control) must I add in to display the SVG image.
>  
> PinYiow
> 
> 
> Jeff Rafter <[EMAIL PROTECTED]> wrote:
> 
> >  Thanks for the reply. I will probably need to use the transform
> > functions but not just yet. Meanwhile, rendering was taking to long so
> > I made a little digging :) ended up making a minor change with a
> > performance gain of at least 500% in rendering my test SVG  :)  It
> > would be great if you took a look to check if it's worth adding this
> > change to the latest version. How would you prefer I send it to you? 
> 
> Either way, on this list or directly. I am ambivalent : ) I have been 
> gathering fixes from all over and getting ready for another commit once 
> I have this transform stuff working (oh so close now!). As an aside, a 
> lot of the performance bottlenecks are in exception creation many
around 
> CSS and colors. With a slight change to the CSS regex I got a 2000% 
> increase in the debugger. It didn't make that much of a difference 
> outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
> without it. Then again, I am skittish about committing something so 
> unresearched... and lately I have been typing ambilevousy.
> 
> All the best,
> Jeff Rafter
> 
> 
> -
> To unsubscribe send a message to:
[EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit
my membership"
>  
> 
> 
> 
> -
> Yahoo! Groups Links
> 
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
>   
>To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 
> -
> Do you Yahoo!?
>  Yahoo! Search presents - Jib Jab's 'Second Term'
> 
> [Non-text portions of this message have been removed]





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 



-
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



-
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: SVG#, examples and interactivity

2005-02-06 Thread scasquiov



 Hi,

You need to reference the following dlls:
  SharpVectorBindings.dll 
  SharpVectorCss.dll  
  SharpVectorDom.dll  
  SharpVectorObjectModel.dll  
  SharpVectorRenderingEngine.dll
  SharpVectorScripting.dll  
  SharpVectorXml.dll
  SharpZipLib.dll   
  SvgComponents.dll   
  nunit.framework.dll 

and you can use a SvgComponents.SvgPictureBox to display the SVG
image, all you need is to add one to your form and load the svg file
when you require:

  svgPictureBox1.SourceURL = ".\\test.svg";


 Regards,
 /FC



--- In svg-developers@yahoogroups.com, alvin w <[EMAIL PROTECTED]> wrote:
> Jeff,
>  
> I am using SharpVectorGraphics in my project. But I don't know how
to use it to display an SVG file in my project. May I know which
library should I include in the references of my project and which
Windows Component (control) must I add in to display the SVG image.
>  
> PinYiow
> 
> 
> Jeff Rafter <[EMAIL PROTECTED]> wrote:
> 
> >  Thanks for the reply. I will probably need to use the transform
> > functions but not just yet. Meanwhile, rendering was taking to long so
> > I made a little digging :) ended up making a minor change with a
> > performance gain of at least 500% in rendering my test SVG  :)  It
> > would be great if you took a look to check if it's worth adding this
> > change to the latest version. How would you prefer I send it to you? 
> 
> Either way, on this list or directly. I am ambivalent : ) I have been 
> gathering fixes from all over and getting ready for another commit once 
> I have this transform stuff working (oh so close now!). As an aside, a 
> lot of the performance bottlenecks are in exception creation many
around 
> CSS and colors. With a slight change to the CSS regex I got a 2000% 
> increase in the debugger. It didn't make that much of a difference 
> outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
> without it. Then again, I am skittish about committing something so 
> unresearched... and lately I have been typing ambilevousy.
> 
> All the best,
> Jeff Rafter
> 
> 
> -
> To unsubscribe send a message to:
[EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit
my membership"
>  
> 
> 
> 
> -
> Yahoo! Groups Links
> 
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
>   
>To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
>   
> -
> Do you Yahoo!?
>  Yahoo! Search presents - Jib Jab's 'Second Term'
> 
> [Non-text portions of this message have been removed]





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: SVG#, examples and interactivity

2005-02-06 Thread scasquiov


> >  Thanks for the reply. I will probably need to use the transform
> > functions but not just yet. Meanwhile, rendering was taking to 
> > long so I made a little digging :) ended up making a minor change 
> > with a performance gain of at least 500% in rendering my test 
> > SVG  :)  It would be great if you took a look to check if 
> > it's worth adding this change to the latest version. How would 
> > you prefer I send it to you? 
> 
> Either way, on this list or directly. I am ambivalent : ) I 
> have been gathering fixes from all over and getting ready for 
> another commit once I have this transform stuff working (oh so 
> close now!). As an aside, a lot of the performance bottlenecks 
> are in exception creation many around CSS and colors. With a 
> slight change to the CSS regex I got a 2000% increase in the 
> debugger. It didn't make that much of a difference outside of 
> the debugger, but wow. I wouldn't use SharpVectorGraphics 
> without it. Then again, I am skittish about committing something 
> so unresearched... and lately I have been typing ambilevousy.
> 


 The bottleneck you talk about is probably the one I worked on too; I
also have some doubts about how I solved it though. I'll send you the
changes off-list so that i can send them attached.
 If I find some extra time I'll use a profiler to identify other
eventual bottlenecks. 

 Cheers,
 /FC







-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: SVG#, examples and interactivity

2005-02-05 Thread alvin w

Jeff,
 
I am using SharpVectorGraphics in my project. But I don't know how to use it to 
display an SVG file in my project. May I know which library should I include in 
the references of my project and which Windows Component (control) must I add 
in to display the SVG image.
 
PinYiow


Jeff Rafter <[EMAIL PROTECTED]> wrote:

>  Thanks for the reply. I will probably need to use the transform
> functions but not just yet. Meanwhile, rendering was taking to long so
> I made a little digging :) ended up making a minor change with a
> performance gain of at least 500% in rendering my test SVG  :)  It
> would be great if you took a look to check if it's worth adding this
> change to the latest version. How would you prefer I send it to you? 

Either way, on this list or directly. I am ambivalent : ) I have been 
gathering fixes from all over and getting ready for another commit once 
I have this transform stuff working (oh so close now!). As an aside, a 
lot of the performance bottlenecks are in exception creation many around 
CSS and colors. With a slight change to the CSS regex I got a 2000% 
increase in the debugger. It didn't make that much of a difference 
outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
without it. Then again, I am skittish about committing something so 
unresearched... and lately I have been typing ambilevousy.

All the best,
Jeff Rafter


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 



-
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [svg-developers] Re: SVG#, examples and interactivity

2005-02-05 Thread Jeff Rafter


>  Thanks for the reply. I will probably need to use the transform
> functions but not just yet. Meanwhile, rendering was taking to long so
> I made a little digging :) ended up making a minor change with a
> performance gain of at least 500% in rendering my test SVG  :)  It
> would be great if you took a look to check if it's worth adding this
> change to the latest version. How would you prefer I send it to you? 

Either way, on this list or directly. I am ambivalent : ) I have been 
gathering fixes from all over and getting ready for another commit once 
I have this transform stuff working (oh so close now!). As an aside, a 
lot of the performance bottlenecks are in exception creation many around 
CSS and colors. With a slight change to the CSS regex I got a 2000% 
increase in the debugger. It didn't make that much of a difference 
outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
without it. Then again, I am skittish about committing something so 
unresearched... and lately I have been typing ambilevousy.

All the best,
Jeff Rafter


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: SVG#, examples and interactivity

2005-02-04 Thread scasquiov



  Jeff,

 Thanks for the reply. I will probably need to use the transform
functions but not just yet. Meanwhile, rendering was taking to long so
I made a little digging :) ended up making a minor change with a
performance gain of at least 500% in rendering my test SVG  :)  It
would be great if you took a look to check if it's worth adding this
change to the latest version. How would you prefer I send it to you? 

 Cheers,
 /FC




--- In svg-developers@yahoogroups.com, Jeff Rafter <[EMAIL PROTECTED]> wrote:
> >  Where might I find examples and/or documentation on
> > SharpVectorGraphics? I will be using it to show an SVG in my C#
app
> > but I will also need some interaction. For example, when clicking
a
> > certain element it should become highlighted by changing its
color.
> > I've read about this being possible (not sure where though) but
> > couldn't yet figure out how.
> 
> // After loading...
> ISvgDocument doc = svgPictureBox.Window.Document;
>doc.RootElement.AddEventListener("click", new 
> EventListener(ClickHandler), false);
>doc.RootElement.AddEventListener("mousedown", new 
> EventListener(MouseDownHandler), false);
>doc.RootElement.AddEventListener("mouseup", new 
> EventListener(MouseUpHandler), false);
>doc.RootElement.AddEventListener("mousemove", new 
> EventListener(MouseMoveHandler), false);
>doc.RootElement.AddEventListener("mouseover", new 
> EventListener(MouseOverHandler), false);
>doc.RootElement.AddEventListener("mouseout", new 
> EventListener(MouseOutHandler), false);
> 
> etc
> 
>  public void MouseOverHandler(IEvent e)
>  {
>SvgElement aGraphic = null;
>if (e.Target is SvgElement)
>  aGraphic = ((SvgElement)e.Target);
>else if (e.Target is SvgElementInstance)
>  aGraphic = 
> (SvgElement)((SvgElementInstance)e.Target).CorrespondingUseElement;
> 
>aGraphic.SetAttribute("stroke", "cyan");
>svgPictureBox1.Render();
>  }
> 
> And so on... keep in mind, this only works from the CVS version, 
> re-rendering is not optimized, and if you are planning on using
GetCTM, 
> GetTransformToElement, GetScreenCTM or the like, wait. I will be 
> finished in a couple more days I think...
> 
> Cheers,
> Jeff Rafter





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/