EMF, improved clipping support

Bug #1302857 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
David Mathog

Bug Description

The support for clipping on EMF input was always rudimentary, and support on output was completely absent. The attached patch addresses the first issue. It implements full support for the EMF clipping records other than EMR_SETMETARGN (which refers mysteriously to a metaregion - a term not used elsewhere in the documentation.) Examples will follow.

Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

Test file input file, the clipping tests run down the right slide of the diagram.

Revision history for this message
David Mathog (mathog) wrote :

Example screen shot, what the clipping tests should look like (after the patch.) Only the top 3 entries will be correct before the patch is applied.

Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

referred to by bug #1294713

Revision history for this message
David Mathog (mathog) wrote :

Updated patch that completely implements normal clipping on input for both EMF and WMF. (It uses livarot to perform the AND/OR/XOR logic on the clipping masks.)

The EMF SETMETARGN record is at present not implemented. That record type sets up some sort of secondary clipping that is supposed to interact with normal clipping. I have never seen an EMF file containing that type of record, so it must be quite rare.

These changes were committed as revision 13322.

This bug is not marked as fix committed yet because output to EMF/WMF clipping has not yet been implemented.

su_v (suv-lp)
Changed in inkscape:
assignee: nobody → David Mathog (mathog)
importance: Undecided → Wishlist
milestone: none → 0.91
status: New → In Progress
Revision history for this message
David Mathog (mathog) wrote :

The attached patch implements (most of) clipping output to EMF. Clipping out to WMF will not be implemented because that file format has extremely limited clipping support and it would only be able to handle clipping by rectangular regions aligned with the X,Y axes. One limitation - clipping is restricted to the first clip_ref found from the object up towards the root, if any. This may be a group or a single object. If there are other clip_ref's further up towards the root these should in theory be
AND'd to the preceding level, but for now they are just ignored.

This patch includes the patch for bug #1348417. That bug was preventing incoming clipping from working for both EMF and WMF.

Committed as revision 13544.

Changed in inkscape:
status: In Progress → Fix Committed
su_v (suv-lp)
tags: added: clipping emf exporting importing
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.