Skip to content

Commit

Permalink
Merge pull request #2611 from cwensley/curtis/graphics-from-bitmap-di…
Browse files Browse the repository at this point in the history
…spose-comment

Add comment about having to dispose the Graphics object
  • Loading branch information
cwensley authored Jan 26, 2024
2 parents d660fe3 + e54f626 commit db8e205
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Eto/Drawing/Graphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public Graphics(IHandler handler)
/// <summary>
/// Initializes a new instance of the Generator class to draw on the given <paramref name="image"/>
/// </summary>
/// <remarks>
/// To commit the changes to the Bitmap, the Graphics object must be disposed or used with a using block.
/// </remarks>
/// <param name="image">Image to draw on using this graphics context</param>
public Graphics(Bitmap image)
{
Expand Down

0 comments on commit db8e205

Please sign in to comment.