Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Svg Painter
Re: Svg Painter [message #26077 is a reply to message #20334] Tue, 30 March 2010 18:05 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
Hi!

There is a small bug in SvgView. The code should be as following to avoid the partial clipping of images:
void SvgView::Load(const char *filename)
{
	img.SetImage(Null);
	ImageBuffer ib(img.GetSize());


Also a bigger bug, the serialization of "files" causes an assert failure.

And something a little bit strange, the pattern used for drawing empty image backgrounds is different on XP and Vista. Is this intentional?

I have started improving SVG compatibility. Right now I'm implementing viewports and other small details and I manged to get two images from on-line SVG spec almost pixel perfect. This is encouraging. On the other hand, my implementation is poor and I'm going to start from scratch with viewports. I'm afraid that I'm going to have to keep in memory all shapes and after computing the bounding box apply scale and translate to achieve correct implementation. Unfortunately, Even SVG Tiny is extremely complicated to get compatible and this without animation. SVG is a devilishly complicated format masquerading as something simple.

The good news is that Firefox has very poor SVG support, so I thing we can reach that level with a little effort. Opera is very good on the other hand. Anyway, I just have a few SVGs that I would like to load without modifications.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: usvn - SVN for dummies (and me)
Next Topic: Docking: How to call a callback on DockableCtrl's close
Goto Forum:
  


Current Time: Mon Aug 25 14:47:58 CEST 2025

Total time taken to generate the page: 0.05835 seconds