History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FVG-294
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Donszelmann
Reporter: Trejkaz
Votes: 0
Watchers: 1
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
FreeHEP Vector Graphics

EMF: Renderer improvements

Created: 09/Jan/07 03:10 PM   Updated: 15/Jan/07 08:30 AM
Component/s: EMF
Affects Version/s: 2.0
Fix Version/s: 2.1

File Attachments: 1. Text File freehep-renderer-improvements.patch (58 kb)



 Description  « Hide
Several improvements all rolled into one (as they're in the same class, it's sort of hard to separate it all out.)

1. Separated the non-Swing rendering code into an EMFRenderer which is now used from EMFDisplay. As a result, you can now render an EMF onto a BufferedImage, or indeed anything where you can create a Graphics2D.
2. Added support for rendering text.
3. Added support for rendering ellipses.
4. Improved GDI object handling and paint/stroke handling.
5. Added support for "special" GDI objects which don't need to be created up-front (such as the black pen.)
6. ExtTextOutW and ExtTextOutA now subclass AbstractExtTextOut, TextW and TextA subclass Text. This simplifies both text rendering and text extraction.

I will attach the patch in a moment, I have a little cleanup to do first.


 All   Comments   Change History      Sort Order:
Mark Donszelmann - 09/Jan/07 03:29 PM
Great.

I am working myself on the EMF+ output (GDI+). I guess we could change the renderer to cope/handle EMF+ (which is
a lot easier) as well.

Regards
Mark

Mark Donszelmann - 10/Jan/07 07:05 PM
Waiting for your patch, no rush...

Trejkaz - 10/Jan/07 07:24 PM
It'll come. I have a patch relative to version 2.0 but I thought it would be better if it were relative to svn trunk, but right now we can't connect to svn from our office so I'm waiting for our sysadmin to open that, and then straight after that I'll merge changes in and get things ready.

Trejkaz - 14/Jan/07 08:29 PM
Sorry about the wait. It took that long to get the firewall opened up. Luckily, trunk hadn't changed since 2.0 for any of the files I had modified.

Mark Donszelmann - 14/Jan/07 10:33 PM
Thanks,

will apply this tomorrow or tuesday.

Thanks in advance
Mark

Mark Donszelmann - 15/Jan/07 08:30 AM
Applied patch.

Can I add your name to the contributor list?

Send me details at Mark.Donszelmann@slac.stanford.edu

Regards
Mark