<p>The system default polygon fill mode in current device context is <code>ALTERNATE</code> (as I've learned from the Petzold book on Windows programming) and this one is used in <a href="http://msdn.microsoft.com/en-us/library/ms533274(VS.85).aspx" rel="nofollow noreferrer"><code>Polygon</code></a> Win32 function unless you change the mode with <a href="http://msdn.microsoft.com/en-us/library/ms536642(VS.85).aspx" rel="nofollow noreferrer"><code>SetPolyFillMode</code></a>.</p>

<p><strong>My question is</strong>:
Does the GDI+ <a href="http://msdn.microsoft.com/en-us/library/ms535958(VS.85).aspx" rel="nofollow noreferrer"><code>Graphics::FillPolygon</code></a> (without the <code>FillMode</code> parameter in its signature) method also use the current device context fill mode or sets the well-known-default and then sets back the mode set before it was called?</p>

<p>Thanks!</p>

[{'answer_id': 51478, 'author': 'Mark Ingram', 'author_id': 986, 'author_profile': 'https://Stackoverflow.com/users/986', 'pm_score': 1, 'selected': False, 'text': "<p>I don't know the answer off the top of my head, but you could try finding out by retrieving the fill mode before and after the call. If it's not different, it's either not been changed, or was changed then changed back.</p>\n"}, {'answer_id': 5129889, 'author': 'mjcopple', 'author_id': 279999, 'author_profile': 'https://Stackoverflow.com/users/279999', 'pm_score': 0, 'selected': False, 'text': "<p>I looked at the reference source and FillPolygon without a fill mode simply calls FillPolygon with a fill mode of alternate.</p>\n\n<p>FillPolygone with a fill mode calls a method named GdipFillPolygonI, but I can't find anything about that method.</p>\n"}]
['https://Stackoverflow.com/questions/51475', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5049/']