Tracking object entries when "playing" a Windows Enhanced Metafile

Posted by lzcd on Stack Overflow See other posts from Stack Overflow or by lzcd
Published on 2010-05-09T01:32:11Z Indexed on 2010/05/09 1:38 UTC
Read the original article Hit count: 373

Filed under:
|
|

One of my current projects requires that I work out what colours are being used in an EMF file.

I have been able to successfully whip up a file parser in C# that notes all references to colours... but haven't had any luck tracking which objects are in use across the entire file so I can apart colours that are referenced from colours that are used to paint on screen.

The older style WMF files are easy as the object library starts at zero and one can simply track each "Create Object" style command... but EMF files are proving to be trickier as there seems to be preexisting entries in the library (if the "Select Object" commands I'm seeing are to be believed).

Would anyone be able to either enlighten me on how to track objects in the library correctly with EMF files... or suggest an easier alternative to work out which colours are actually being used in the file (as opposed to just being defined)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about emf

  • How to use EMF to read XML file?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have to use EMF in one of my class projects. I am trying to understand how to use EMF to do the following: Read XML, Get the values into objects. Use ORM to persist the values in objects to database. - Done Get data from database using ORM and generate XML. I need to do all of that using: EMF… >>> More

  • DPI for EMF files

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Do EMF files have a DPI that can be set? I have an application that allows saving an image in multiple formats (including EMF). I allow the user to specify the resolution/DPI for the image(s). However, I cannot find a way to do this for a MetaFile in C#. Is this possible or does EMF not have a DPI… >>> More

  • Recursion in Ecore-File?!

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hey guys, just tried to convert towards a Ecore-Model from a given UML-Model. After this I am trying to create a Generator Model. Everytime I try to do this I get the Error Message, that there is a "Unhandled event loop exception" with this log: org.eclipse.swt.SWTException: Failed to execute… >>> More

  • EMF to EPS Converter

    as seen on Super User - Search for 'Super User'
    I'm looking for (free) tools for converting images stored in EMF (Enhanced Metafile Format) format to EPS (Encapsulated Postscript). What features make your recommendation stand out? Edit: can you recommendation be used for batch processing? >>> More

  • AXway/tumbleweed EMF in exchange 2007

    as seen on Server Fault - Search for 'Server Fault'
    Looking for someone who has implemented an axway EMF recently. I'm about to implement an axway SM product for company wide email encryption. I current have an edge transport server and an exchange 2007 server. I want to route email like the follow: the edge picks up internet email to exchange and… >>> More