We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Enhanced Windows Metafiles

I would like to see some short sample code that creates an enhanced metafile with GDI+ commands and then displays it by enumerating its records (PlayRecord Method). I need metafile records for (1) creating pens, (2) drawing lines, and (3) metafile comments (MFCOMMENT) for identification of lines. Later, I will use world coordinates for line vertices, while pen widths will be in pixels or page coordinates. (No need to worry about that in the sample code)

Live Chat Icon For mobile
Up arrow icon