Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

GDI+ Enumeration

vinayjainvinayjain Member Posts: 1
Hi,

I was trying to enumerate an emf using EnumerateMetafile for one of my tool which needs to parse EMF.However what i notice is that not all GDIComment records are enumerated.Also Since GDIComment records may have GDI+ calls , GDI+ calls inside comments are enumerated but only the inner GDI+ comments are enumerated ,how do i know if these GDI+ comments are encapsulated inside a GDI+ comment body?

For example:
if the content of emf is :

EmfMin
EmfGdiComment
Header
EmfGdiComment
SetAntiAliasMode
SetTextRenderingHint
SetPageTransform
SetInterpolationMode
SetPixelOffsetMode
SetWorldTransform
GetDC
EmfSaveDC
EmfGdiComment
EmfRestoreDC
EmfGdiComment
GetDC
EmfSaveDC
...
...
EmfEof


When enumerated , in my callback , I get callbacks in the following manner:

EmfMin
Header <-- Inside EMFGdiComment
SetAntiAliasMode <--Inside EMFGdiComment
SetTextRenderingHint
SetPageTransform
SetInterpolationMode
SetPixelOffsetMode
SetWorldTransform
GetDC
EmfSaveDC
EmfGdiComment
EmfRestoreDC
GetDC <--Inside EMFGdiComment
EmfSaveDC
...
...
EmfEof

Any suggestions?
Sign In or Register to comment.