IMDTouchKnowledge BaseShop main store

Troubleshooting

Why TIA Portal V16 graphics lose their transparent background

HMI and touchscreens Published 6 min read

Short answer

TIA Portal V16 delivers its WinCC library graphics with a solid light-gray background instead of usable transparency, so the runtime paints a gray rectangle; the fault is in the pictures, not your installation. Set the object's Transparent color to the picture's background, copy the graphic from a V15.1 reference project, or drag it from an extracted, linked copy of the graphics library; where a Basic Panel snaps the color, use one of the source-based fixes.

On this page
  1. What the gray rectangle tells you
  2. Why color-key transparency fails on these pictures
  3. Fix per object: key the background color out
  4. The palette snap on Basic Panels
  5. Reference-project fix: copy the picture from a V15.1 project
  6. Linked-folder fix: extract the graphics library
  7. Choosing the fix for your case
  8. Checks before you call it fixed
  9. Questions asked

Library graphics placed on a TIA Portal V16 WinCC screen show a light-gray rectangle where V15 showed the screen through the picture. The cause is in the graphics delivered with V16: the pictures carry a solid background with no transparency set to match it, so the runtime paints that background as ordinary gray. Your installation, display driver and PC are not at fault. Three fixes work: key the background out on each object with the graphic's Transparent color, copy the picture over from a V15.1 reference project, or drag it from an extracted, linked copy of the graphics library. Below is the diagnosis, all three procedures, the color-palette snap you will meet on Basic Panels, and the choice for each case.

What the gray rectangle tells you #

This fault announces itself through a pattern, and the pattern separates a picture problem from an installation problem:

  • The same picture shows the same rectangle on more than one computer and on every display configuration: Basic and Comfort panels, WinCC Advanced and WinCC Professional. That rules out a single machine's graphics driver, profile or damaged installation.
  • An earlier TIA Portal version on the same computer renders the same kind of picture correctly. That points at the pictures delivered with V16.
  • The rectangle is one uniform light gray, edge to edge. The background is baked into the picture as solid pixels, not stored as a transparent area.
  • On Basic Panel targets, the Transparent color field rewrites the value you type. The device's color palette is limited; that snap has its own section below.

Why color-key transparency fails on these pictures #

Color-key transparency means one designated color of a raster picture is simply not drawn; the picture itself carries no per-pixel opacity. Two conditions must hold at once: the object's transparency option is on, and the key color equals the color the picture actually contains in its background. A library picture delivered with a solid background and no matching key gives the runtime no reason to skip those pixels.

Verify it yourself before changing anything: open a problem picture in an image editor and read a corner pixel with the eyedropper. It reads 211,211,211, which is hex D3D3D3, since 13×16 + 3 = 211 per channel, the value web colors call lightgray. The per-object fix keys exactly that color; the other two fixes change where the picture comes from instead.

The same key is what you set when bringing your own artwork into a panel project, as covered for importing HMI images with a transparent background. The failure mode is not unique to HMIs either: Windows picture boxes drop PNG alpha in a comparable way, as explained in why PNG images lose transparency in Visual Studio.

Fix per object: key the background color out #

The fastest fix for a few objects, with no extra installs:

  1. Select the graphic in the screen editor.
  2. Open Properties > Properties > Appearance.
  3. Set the background Fill pattern to Transparent.
  4. Tick the graphic's Transparent checkbox.
  5. Set the graphic's Transparent color to 211,211,211.

Every pixel of exactly that color now drops out. Two costs come with it: any intentional light-gray detail inside the artwork disappears together with the background, so inspect each symbol after applying; and the settings are per instance, so a picture used on many screens multiplies the work.

The palette snap on Basic Panels #

A Basic Panel can display fewer colors than a Comfort Panel, and the editor constrains color entries to what the target can show. Typing 211,211,211 into the Transparent color field is then rewritten immediately to 214,211,214, which is hex D6D3D6, since 13×16 + 6 = 214. The snap is expected editor behavior on a limited-palette target, not a typing error.

The decision: accept the snapped value, simulate the screen for that exact device type and look at the picture edge over a dark background. If the box is gone, the snapped key matches on that target and you are done. If the box survives, the key no longer equals the picture's pixel color and per-object keying is finished on that device: move to the reference-project or linked-folder fix, which change the picture instead of the key. Run this test on the real device type, not only on a Comfort or PC runtime, because the snap exists only on limited-palette targets.

Reference-project fix: copy the picture from a V15.1 project #

A reference project is a second project opened read-only inside the current one so objects can be copied across. It supplies the picture from a version whose library behaved correctly, and the copied graphic needs no key. This route was confirmed working on a KTP 900 Basic.

  1. In a TIA Portal V15.1 installation, create a project and place the graphic you need on a screen.
  2. Convert that project to V16.
  3. Open the converted project as a reference project from your working V16 project.
  4. Copy the graphic from the reference project and paste it into your screen.

This suits teams that still keep a V15.1 environment, for example in a virtual machine. Copy only the graphics you need; do not drag whole screens over working V16 screens.

Linked-folder fix: extract the graphics library #

The V16 graphics ship as an archive in the install folder. Extract a copy to a writable location and link it as a graphics folder; pictures dragged from that link render transparent. Leave the install directory itself untouched.

  1. Close TIA Portal.
  2. Copy C:\Program Files\Siemens\Automation\Portal V16\lib\Graphics\Graphics_All.zip to a writable location, for example the Desktop.
  3. Extract the copy.
  4. Open TIA Portal and your HMI or SCADA project, then open the screen.
  5. In Toolbox > Graphics, click the add-picture icon (tooltip: Create link to folder) and select the extracted folder.
  6. Take a picture from the Navigate&Operate category and drag it onto the screen.

The copy and extract in PowerShell:

Copy-Item "C:\Program Files\Siemens\Automation\Portal V16\lib\Graphics\Graphics_All.zip" "$env:USERPROFILE\Desktop\"
Expand-Archive "$env:USERPROFILE\Desktop\Graphics_All.zip" "$env:USERPROFILE\Desktop\Graphics_All"

Keep the extracted folder at a path that stays available to every machine that edits the project.

Choosing the fix for your case #

Your situation Fix to apply What to watch
A few objects; Comfort Panel, WinCC Advanced or Professional target Per-object key, 211,211,211 Repeats per instance; removes identical gray inside the artwork
Basic Panel that snaps the typed color Snapped key first; reference-project or linked-folder fix if the box survives The snapped key may not equal the picture's pixel color
Many Navigate&Operate pictures across many screens Linked extracted folder The folder must exist at the linked path on every editing machine
A V15.1 installation already at hand Reference-project copy Needs a V15.1 authoring step and a conversion

No corrected V16 library release is identified, so treat all three as interim. The linked-folder fix is the closest to a global correction: every picture placed from it afterwards renders correctly with no per-object settings.

Checks before you call it fixed #

  • Place the picture over a screen background that is clearly not gray, for example dark blue. The background must show through the picture with no light-gray rectangle.
  • Zoom well into the symbol outline. No gray fringe may remain; a halo means the key misses the picture's edge pixels.
  • Run the check on the real target device type, not only on a PC runtime, because the palette snap exists only on limited-palette targets.
  • For the linked-folder fix, open the project once on a second editing machine and confirm the toolbox link resolves before you hand the screens on.

Questions asked

Will reinstalling or repairing TIA Portal V16 remove the gray background?

No. The graphics are delivered with the installation, so a repair or reinstall puts the same pictures back and the rectangle returns. Nothing in the setup, whether display driver, DPI scaling or runtime licensing, causes it, so spend the time on the color key, the V15.1 copy or the linked folder instead.

Does converting a V15.1 project to V16 fix the graphics already placed in it?

Yes, for the pictures already placed: that is exactly what the reference-project fix relies on, and a converted V15.1 project keeps rendering those pictures with their transparency. Conversion does not change the V16 library itself, so a picture taken freshly from the V16 toolbox afterward still arrives with the gray box and needs one of the three fixes.

What happens to finished screens if the linked graphics folder is missing on another PC?

Screens already built keep an embedded copy of each placed picture, so they continue to render correctly. Only the toolbox link fails: Graphics comes up empty for new picks until the folder is restored at the linked path or the link is recreated to a new location.

Why does a thin gray fringe remain around the symbol after keying the background?

A color key removes only pixels of exactly that color. Edge pixels that blend between the symbol and its background, or a key the editor snapped to the device palette, differ slightly and stay visible. When a halo survives, stop keying that object and take the picture from the V15.1 reference project or the linked folder instead.

Keep reading

  • Troubleshooting

    Animating WinCC symbol library objects in TIA Portal

    Symbol library objects in WinCC Comfort and Advanced are dynamic; a solid fill style hides the color your Appearance animation writes. Set Fill style to Shaded, animate the foreground color, and verify in the simulator before duplicating. For bitmaps in a graphic view there is no color to animate — drive a graphic list with the state tag, or redraw the symbol from native objects.

    HMI and touchscreens

  • Explainer

    Why TIA Portal HMI screens do not export to jpg directly

    No command in TIA Portal writes composed HMI screens to jpg. Document the screens with repeatable fixed-region captures at one common zoom level; use the Export Graphics Tool only when you need the individual graphics in their original file types, and expect project printing to deliver object tables rather than pictures.

    HMI and touchscreens

  • Troubleshooting

    Unified Comfort Panel simulation fails in VMware

    In a reported TIA Portal V16 trial, Unified Comfort Panel simulation in VMware guests started after Activate secure download was cleared in WinCC Unified Configuration, with the same empty project. Run that as a controlled single-change diagnostic on an isolated engineering VM, and keep secure download active for transfers to a real panel.

    HMI and touchscreens