Gdiplus Pen constructor change of behaviour in Windows 10 KB5006670 update

Martin Husemann 181 Reputation points
2021-10-13T15:06:54.247+00:00

When creating a Gdiplus Pen for a hair line we have always used 0.0 as witdh argument for the Pen constructor. With the KB5006670 this no longer works - the constructor changes the width from 0.0 to 1.0 (the default) and the width scales with various transformations - which is not what a hair line should do.

Explicitly setting the width (post construction) to 0 still works.

Is this a bug that will be fixed?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,411 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Markus H 41 Reputation points
    2021-10-14T08:47:22.137+00:00

    This is a serious problem for us because our desktop mapping-application produces totally wrong graphics-output since installing this update.

    I reported a bug here: https://developercommunity.visualstudio.com/t/wrong-gdiplus-graphics-output-after-installing-kb5/1553998

    8 people found this answer helpful.

  2. Alessandro Ordan 36 Reputation points
    2021-10-14T07:13:41.283+00:00

    The same thing for our software! Please solve this bug asap. We are getting assistance request from dozens of customers!

    7 people found this answer helpful.
    0 comments No comments

  3. DeThomas, Rich (DI SW EBS OPS) 11 Reputation points
    2021-10-21T13:03:32.603+00:00

    Unfortunately, My IT Department has disabled our ability to use the feedback hub so I can vote on it.

    2 people found this answer helpful.
    0 comments No comments

  4. Xiaopo Yang - MSFT 11,256 Reputation points Microsoft Vendor
    2021-10-14T01:38:51.693+00:00

    KB5006670 release health does have a Microsoft Graphics Component update but It‘s probably not a bug. And It’s preferred to specify constructor parameter(s) directly instead of depending on default behavior.

    1 person found this answer helpful.

  5. Xiaopo Yang - MSFT 11,256 Reputation points Microsoft Vendor
    2021-10-21T02:29:14.883+00:00

    @Martin Husemann You should issue a bug through Windows Feedback Hub instantly. With the Feedback Hub link given, anyone who encounters the bug may vote it up and then we can process easily.