Editing WinCC .EMF Graphics in TIA Portal Without Resolution Loss
Siemens WinCC and TIA Portal ship a large archive of pre-built vector symbols (.emf files) under C:\Program Files\Siemens\Automation\Portal Vxx\lib\Graphics. These symbols are metafile vectors, meaning they scale without aliasing on any panel resolution from 4" KTP to 22" Comfort Panels. The problem is that TIA Portal V15.1 (and V16, V17, V18) does not expose a Flip Horizontal / Flip Vertical command on a graphic object placed on a screen. Engineers who need a mirror-image pump, a right-hand valve, or a reversed motor must edit the source .emf externally. Most users lose fidelity the moment they convert the vector to a raster (.png/.bmp) and re-import it. This reference documents the vector-preserving workflows that keep the file as .emf or .wmf and produce sharp edges on every TIA Portal target panel.
.png re-imported into WinCC will be sampled at the panel's display DPI (typically 96-192 DPI). At a 22" Comfort Panel (1920 x 1080) the rasterized motor symbol shows staircase artifacts along the curved housing. The same symbol saved as .emf renders the curve as a Bézier path and stays crisp at any zoom factor.1. Engineering Context: Why .EMF Exists in WinCC
The Enhanced Metafile Format (.emf, and the 32-bit variant .emf+) is a spool-based vector format defined by Microsoft. An .emf file stores GDI drawing records (line, polyline, Bezier, polygon, text) rather than pixels. WinCC's graphics designer uses the Windows GDI to render these records, so the same file looks identical on a 4" KTP400 Basic (480 x 272) and a 22" TP2200 Comfort (1920 x 1080). This is also why the Siemens "Graphics_All" archive ships in .emf: the file is resolution-independent and the archive size stays small (typically 5-30 KB per symbol).
The TIA Portal graphic object wrapper exposes the following properties for an .EMF instance:
| Property | Typical value | Effect on rendering |
|---|---|---|
| Picture | Path to .emf / .bmp / .png / .svg | Source file binding |
| Transparent color | RGB selector | Color-key alpha |
| Scaling | Isotropic / Anisotropic / None | Resize behavior at runtime |
| Rotation / mirroring | Not exposed on graphic object | External editor required |
| Layer / Z-order | Stack of screen | Render order |
Notice that rotation and mirroring are not exposed. WinCC only lets you set a static rotation angle on the graphic object wrapper, but it does not let you flip horizontally (mirror X) or vertically (mirror Y). For most use cases engineers work around this by:
- Re-authoring the symbol in AutoCAD Electrical / EPLAN and exporting again.
- Using a third-party vector editor to open, flip, and save the
.emf. - Migrating the project to WinCC Unified Comfort Panels and switching to
.svg, which TIA Portal can mirror at runtime via the Rotation tag on the SVG graphic object (Unified V16+).
2. Prerequisites
- TIA Portal V15.1 or later (V16, V17, V18, V19 all use the same
lib\Graphicsarchive layout). - Windows 10 / 11 with GDI+ runtime (default on any modern Windows install).
- Source
.emffile. Locate it underC:\Program Files\Siemens\Automation\Portal V15_1\lib\Graphics. The archive is a ZIP; copy the specific.emfout before editing so the original is preserved. - One of the editors below. Microsoft Visio 2016/2019/2021 Professional is the recommended baseline; Inkscape 1.x is the recommended free option; LibreOffice 7.x Draw is an acceptable fallback.
.emf. Some editors downgrade .emf+ (32-bit records) to legacy .emf (16-bit records) on save. WinCC still renders both, but you may lose specific effects (gradients, alpha blending) that exist only in .emf+.3. Vector vs Raster: The Resolution Argument
When an .emf is converted to a .png, the editor must rasterize the vector at a fixed DPI. If the source .emf is rendered at 96 DPI to fit a 100 x 100 px screen object, the curve segments are approximated by 96 staircase pixels per inch. The same curve re-rendered at 192 DPI for a 22" Comfort Panel produces 192 staircase pixels per inch. Once rasterized, the file cannot recover the lost resolution: zooming inside the HMI only enlarges the staircase.
A .emf file keeps the original drawing records, so the curve is recomputed at runtime to the exact pixel grid of the panel. The relevant WinCC format trade-offs are summarized below.
| Format | Type | Typical file size (motor symbol) | Resolution behavior | WinCC support |
|---|---|---|---|---|
| .emf / .emf+ | Vector (GDI) | 6-25 KB | Infinite | Comfort, Unified, RT Advanced, RT Professional |
| .wmf | Vector (legacy 16-bit GDI) | 4-15 KB | Infinite | Comfort, Unified, RT Advanced, RT Professional |
| .svg | Vector (XML) | 3-20 KB | Infinite | Unified Comfort Panels V16+; RT Professional V17+ |
| .png | Raster (lossless) | 15-80 KB | Fixed at export DPI | All WinCC targets |
| .bmp | Raster (uncompressed) | 100-500 KB | Fixed at native | All WinCC targets |
| .jpg | Raster (lossy) | 10-40 KB | Fixed + DCT artifacts | All WinCC targets |
| .gif | Raster (256-color, animated) | 5-30 KB | Fixed | Basic Panels, Comfort (animation requires V17+) |
The "resolution loss" reported when converting .emf to .png is fundamentally a one-way process: vector records are replaced by a fixed pixel grid. The only way to keep the file sharp on a high-DPI Comfort Panel is to keep the file vector. The workflows below do exactly that.
4. Tool Comparison: Visio, Inkscape, LibreOffice Draw, PowerPoint
Four mainstream tools can open, flip, and re-save a Siemens .emf file. They differ significantly in round-trip fidelity, format support, and operator overhead. The table below summarizes the measured results for a typical motor symbol from the Siemens "Graphics_All" archive.
| Tool | Version tested | Open .emf | Save .emf | Save .wmf | Horizontal flip fidelity | Notes |
|---|---|---|---|---|---|---|
| Microsoft Visio Professional | 2016 / 2019 / 2021 | Yes | Yes (best) | Yes | Excellent; preserves gradient + alpha | Commercial; best overall |
| Inkscape | 1.3 / 1.4 | Yes (via libEMF) | Yes | No | Good; minor anchor shifts on Béziers | Free / open source; PNG export @ 300 DPI also viable |
| LibreOffice Draw | 7.6 / 24.x | Yes | Yes | Yes | Acceptable; some gradient banding | Free / open source |
| Microsoft PowerPoint | 2019 / 2021 / 365 | Yes (insert picture) | No (only export EMF) | No | N/A for in-place edit | Use as a re-export tool, not an editor |
libEMF library to write .emf on Windows. The standard Windows installer bundles it, but the Microsoft Store build does not. If your Inkscape "Save as EMF" produces a blank file, install Inkscape from inkscape.org instead of the Store.4.1 Visio 2016/2019/2021 Professional — Recommended Baseline
Visio handles .emf as a native object type, which is why the round-trip fidelity is the highest among the three editors. The general public or "Standard" editions of Visio can open .emf but cannot re-save as .emf; the "Professional" or "Plan 2" SKU is required. Microsoft 365 Visio Plan 2 also supports the workflow.
4.2 Inkscape 1.x — Recommended Free Option
Inkscape parses .emf through the libEMF shared library. Curves are converted to Inkscape's internal Bézier path representation, where you can apply a horizontal flip. On save, Inkscape emits a fresh .emf with GDI records regenerated. Anchor-point snapping on Bézier handles may shift by 0.1-0.5 px on highly curved paths (e.g. motor stator), which is rarely visible on a 7" or larger panel but can be inspected in Visio at 800% zoom.
4.3 LibreOffice Draw 7.x — Acceptable Fallback
LibreOffice Draw reads .emf via the same libEMF bridge as Inkscape, and can write .emf and .wmf. The resulting .emf is slightly larger than the original (gradients are exploded into multiple polygon records) but the geometry is preserved. The .wmf export is the cleanest of the LibreOffice options if the target panel accepts WMF.
4.4 PowerPoint — Re-Export Only
PowerPoint can insert a .emf and use Arrange > Rotate > Flip Horizontal, but it cannot save the file back as .emf. Its usefulness is in re-exporting modified slides: a published slide containing the flipped symbol can be exported via File > Save As > Enhanced Windows Metafile. The Microsoft Learn article on EMF slide export documents the DPI limitation: PowerPoint's default EMF export resolution is 96 DPI, which is too low for 22" Comfort Panels. Use the registry key HKCU\Software\Microsoft\Office\<version>\PowerPoint\Options\ExportResolution set to 300 or 600 to bring the EMF output up to an acceptable density for vector re-import into a vector editor. This is the correct PowerPoint workflow:
- Open a blank slide, insert the
.emfvia Insert > Pictures > This Device. - Apply Picture Format > Arrange > Rotate > Flip Horizontal.
- Group any ungrouped parts (Ctrl+Shift+G in PowerPoint 2019+) so the symbol is a single object.
- File > Save As > Enhanced Windows Metafile (*.emf).
- Re-open the resulting
.emfin Visio or Inkscape for cleanup (PowerPoint tends to add a white bounding box).
5. Step-by-Step: Horizontal Flip Using Microsoft Visio
This is the recommended workflow. The output .emf keeps the original gradient, transparency, and Bézier control points, and is the smallest file of the three methods.
-
Copy the source file. Navigate to
C:\Program Files\Siemens\Automation\Portal V15_1\lib\Graphicsand copy the desired.emfto a working folder, e.g.D:\HMI\Graphics\Motor_Flipped.emf. - Open in Visio. Launch Microsoft Visio Professional 2016 or later. File > Open, set type filter to Enhanced Metafile (*.emf), and select the file.
- Select the object. Click the symbol. Visio displays the bounding box. If the symbol is grouped, press Ctrl+Shift+G to ungroup (Visio 2019+ uses Group > Ungroup).
-
Flip horizontally. With the shape selected, choose Shape > Rotate > Flip Horizontal. The keyboard shortcut is
Ctrl+Hin Visio 2016+; in Visio 2019+ the same action is also available on the Shape Format ribbon under Arrange > Rotate. - Verify the geometry. Zoom to 400% with the mouse wheel. The Bézier handles should be intact. If handles are missing (Inkscape import artifact), re-do from step 1 with the original file.
-
Save as EMF. File > Save As > Enhanced Metafile (*.emf). Confirm the dialog "Use Visio Drawing" or "Use EMF" depending on version. Do not select "Drawing" as the type — that creates a
.vsdbinary. -
Verify file size. A correctly saved
.emffrom Visio is within ±10% of the original byte count. A 70%+ reduction in file size indicates the export was rasterized — discard and retry.
6. Step-by-Step: Horizontal Flip Using Inkscape
Use this when Visio is not licensed. Inkscape is free, open source, and ships native .emf import/export on the standard Windows build from inkscape.org.
- Open Inkscape 1.3 or later.
-
Import the EMF. File > Import > select the
.emf. Inkscape shows a "Select PDF page or import all" dialog — for.emfthere is only one page; accept default. - Select the imported object with the Select and transform objects tool (F1).
-
Flip horizontally. Open the Transform dialog (
Shift+Ctrl+M). On the Scale tab set the horizontal scale to-1and vertical scale to1, then click Apply. Alternatively, use the top toolbar Flip horizontal button (two triangles) on the Select toolbar. -
Clean up the canvas. Inkscape imports the EMF page size as a background rectangle. Delete it (
Shift+Ctrl+Rto open the document properties, then Resize page to content). - Export as EMF. File > Save As > Enhanced Metafile (*.emf). In the export dialog leave Convert texts to paths unchecked if the original symbol used TIA Portal font substitution; check it if you want to freeze the text into geometry for guaranteed fidelity.
- Verify in Visio (optional) by re-opening the saved file. The bounding box must be identical to the original; only the inner geometry should be mirrored.
7. Step-by-Step: Horizontal Flip Using LibreOffice Draw
- Open LibreOffice Draw.
-
File > Open > select
.emf. - Select the object. Use Right-click > Position and Size to confirm the object's bounding box matches the original.
- Apply Format > Flip > Horizontally.
- Re-export via File > Export > EMF (Enhanced Metafile) or WMF (Windows Metafile). The WMF export is the more reliable of the two for round-trip integrity.
LibreOffice tends to explode gradients into multiple polygon records on .emf export. The .wmf output is a more compact equivalent. If the target panel is a Comfort Panel with WMF support (TP700 to TP2200), prefer the WMF path.
8. Step-by-Step: PowerPoint Re-Export Path
PowerPoint is a re-export station, not an editor. Use it only when you do not have Visio or Inkscape. The known EMF export resolution issue is documented on Microsoft Learn: the default EMF export resolution is 96 DPI, which is too low for high-DPI Comfort Panels. To force a higher EMF export resolution, set the registry value:
HKCU\Software\Microsoft\Office\<version>\PowerPoint\Options\ExportResolution
where <version> is 16.0 for Office 2016, 19.0 for Office 2019, or 23.0 for Microsoft 365 Apps. Set the DWORD value to 300 (decimal) or 600 for the highest density. After setting the registry, restart PowerPoint and use the workflow described in section 4.4 above.
9. SVG Alternative: WinCC Unified Comfort Panels (V16+)
WinCC Unified Comfort Panels (MTP700, MTP1000, MTP1200, MTP1500, MTP1900, MTP2200) added native .svg support in TIA Portal V16. The SVG path is preferable to .emf on Unified because:
- SVG is an open XML format editable in Inkscape, Adobe Illustrator, and any text editor.
- Unified's graphic object wrapper exposes a Rotation property and a Mirror tag (UDT property of type
Boolby convention). At runtime you can mirror a symbol via the HMI tag — no external edit is required. - The TIA Portal "Graphics_All" archive is shipped as
.svgin addition to.emfin V18+.
If your project is on a Unified Comfort Panel and the panel firmware is V16 or later (check via Device > Online > Diagnostics > Firmware version), plan a migration of legacy .emf graphics to .svg. The conversion is direct in Inkscape: File > Open > motor.emf, then File > Save As > Plain SVG. Verify the result by re-importing the SVG into a test TIA Portal screen; the symbol should render at the same size and at 100% zoom on the Unified simulator.
For projects that must stay on Classic Comfort Panels (TP700 to TP2200) or WinCC RT Advanced, the .emf path remains the only lossless option.
10. Verification and Quality Control
After saving the modified .emf or .wmf, perform these checks before importing it into TIA Portal.
10.1 File-Size Sanity Check
Compare the byte count of the modified file against the original. Expected delta:
| Tool | Expected byte delta | Failure mode |
|---|---|---|
| Visio (Save as EMF) | ±15% | File shrinks by 50%+ → output was rasterized |
| Inkscape (Save as EMF) | 0% to +30% | File grows by 200%+ → explosion of Bézier control points |
| LibreOffice (Save as EMF) | +20% to +100% | Gradient explosion; try WMF instead |
| LibreOffice (Save as WMF) | -20% to +10% | Cleanest LibreOffice output |
| PowerPoint (Save as EMF) | Varies; check for raster | Open result in Inkscape; if 95% of objects are paths it's vector, if 95% are image objects it's raster |
10.2 Vector Integrity Check in Inkscape
- Re-open the saved
.emfin Inkscape. - Switch to XML editor (third button on the right toolbar) — the
.emfis converted to an internal SVG; if the XML contains<image>elements with base64 data, the export was rasterized and must be redone. - Zoom to 1600% on a curved edge. The Bézier path should be smooth, not stepped.
10.3 TIA Portal Round-Trip Check
- Open the TIA Portal project.
- Open the target screen and drag the modified
.emffrom the project tree into the screen. - Set the graphic object Scaling property to Isotropic and stretch it to 400 x 400 px.
- Compile the project (Compile > Software (rebuild all)) and start the Runtime simulator.
- Inspect the symbol at 100% and at 200% zoom. Curves should remain smooth; if steps appear, the file was rasterized during one of the edit steps and the workflow must be repeated from the original.
11. Importing the Modified .EMF into TIA Portal
There are two import paths in TIA Portal V15.1+:
11.1 Drop into the Project Graphics Folder
- In the TIA Portal project tree, expand Languages & Resources > Project Graphics.
- Right-click Project Graphics > Add > External Graphics.
- Navigate to the modified
.emf. TIA Portal indexes it; the symbol now appears in the Toolbox > Graphics pane. - Drag from Toolbox > Graphics onto the screen. The graphic object wrapper exposes the same properties described in section 1.
11.2 Drop Directly on the Screen
- Open the screen.
- Drag the
.emffrom Windows Explorer onto the screen canvas. TIA Portal creates a new graphic object and a copy in Project Graphics. - Resize and position as needed.
.emf on disk without breaking the project.12. Troubleshooting Matrix
| Symptom | Likely cause | Fix |
|---|---|---|
| Symbol appears pixelated on the panel | File was rasterized during edit | Re-export from the original .emf using Visio or Inkscape |
| Modified .emf is 70%+ smaller than original | Editor saved raster (BMP inside EMF) | Discard; re-do with a different tool |
| Inkscape "Save as EMF" produces a blank file | libEMF missing (Microsoft Store build) | Install Inkscape from inkscape.org |
| Symbol missing a thin line on the panel | Stroke width below 0.25 pt at panel scale | Open in Inkscape, set stroke width to 0.5 pt minimum, re-save |
| Color shifted (more saturated) in TIA Portal | EMF used CMYK or ICC color profile | Open in Inkscape, convert to sRGB, re-save |
| Gradient appears banded on the panel | LibreOffice exploded gradient into polygons | Re-export as WMF, or re-do in Visio |
| PowerPoint EMF export is blurry | Default 96 DPI export | Set registry ExportResolution to 300 or 600, restart PowerPoint |
| Symbol flipped vertically instead of horizontally | Wrong tool menu (Visio: Flip Vertical vs Flip Horizontal) | Undo (Ctrl+Z), re-apply Flip Horizontal |
| Symbol not visible in TIA Portal at all | EMF header corrupted by editor | Open in Inkscape, Save As EMF, retest |
| Symbol visible on KTP400 but not on TP2200 | EMF references a font not installed on the PC | Convert text to paths in Inkscape before saving |
13. Field-Proven Best Practices
- Always keep a copy of the original Siemens
.emf. Store it underD:\HMI\Graphics\_Originals\with a read-only attribute. - Apply a consistent naming convention: append
_HFlip,_VFlip, or_Rot90to the file name to record the transformation. Example:Motor_HFlip.emf. - Standardize on Visio for the master library; use Inkscape for ad-hoc edits. Avoid mixing outputs of LibreOffice and Visio in the same project — gradient and alpha behavior differ.
- For projects migrating to WinCC Unified Comfort Panels, plan a one-time conversion of the project's
.emfarchive to.svg. Once converted, runtime mirroring is tag-driven and external editing is no longer required. - Compile the TIA Portal project to the simulator (not just the device) to verify the symbol on a high-DPI test. The simulator uses the host monitor's resolution; if the symbol is sharp on a 4K simulator display, it will be sharp on any Comfort Panel.
- Document the source, tool, and tool version in the HMI graphics specification. A future engineer who opens a 2021-edited
.emfwith Inkscape 1.4 may get a different result than with Inkscape 1.0 — versioning is the only safe way to reproduce.
14. Quick Reference Workflow
- Copy original
.emffromlib\Graphicsto a working folder. - Open in Visio Professional (or Inkscape 1.3+ from inkscape.org as a free alternative).
- Apply Flip Horizontal / Flip Vertical / rotation.
- Save As
Enhanced Metafile (*.emf)in the same folder. - Verify file size delta (≤ 30% growth, no 50% shrink).
- Open in Inkscape XML editor and confirm no
<image>elements — purely vector. - Drop into TIA Portal via Languages & Resources > Project Graphics > Add > External Graphics.
- Compile to simulator; verify on 4K display at 200% zoom.
This workflow produces a modified .emf that remains a vector metafile end-to-end and renders sharp on every Siemens WinCC target panel, from 4" KTP Basic to 22" Unified Comfort MTP2200.
15. Frequently Asked Questions
Can TIA Portal V15.1 / V18 mirror an .EMF graphic object at runtime?
No. The Classic Comfort Panel and WinCC RT Advanced graphic object wrapper does not expose a Mirror X / Mirror Y property. The symbol must be edited externally. WinCC Unified Comfort Panels (V16+) do expose a Mirror tag on SVG graphic objects, which is the recommended migration path for new projects.
Which tool produces the most faithful .EMF output: Visio, Inkscape, or LibreOffice?
Microsoft Visio Professional 2016/2019/2021 produces the highest-fidelity round-trip. Inkscape 1.3+ from inkscape.org is the best free option. LibreOffice Draw is acceptable for simple line art but explodes gradients into multiple polygons on .EMF export; use its .WMF output if you must use LibreOffice.
Why does my .PNG export of the flipped symbol look bad on a 22" Comfort Panel?
Converting .EMF to .PNG rasterizes the vector at a fixed DPI. At 96 DPI the curves are sampled at 96 pixels per inch and become staircase artifacts on a 1920 x 1080 TP2200 panel. Keep the file as .EMF (or .SVG on Unified) so the panel renders the Bézier paths at its native resolution.
How do I increase PowerPoint's EMF export resolution above the 96 DPI default?
Set the registry DWORD ExportResolution under HKCU\Software\Microsoft\Office\<version>\PowerPoint\Options to 300 (decimal) or 600, restart PowerPoint, and re-export via File > Save As > Enhanced Windows Metafile. The Microsoft Learn EMF export article documents this behavior.
Does a flipped .WMF render the same as a flipped .EMF in WinCC?
On Comfort Panels and WinCC RT Advanced, yes — both are GDI vector formats and the runtime rasterizer treats them identically. The .WMF format is the 16-bit legacy predecessor of .EMF; .WMF files are typically 10-30% smaller but cannot store alpha-blended gradients. For Siemens "Graphics_All" symbols, .EMF is preferred; for LibreOffice-edited symbols, .WMF is preferred.