Skip to content

Commit

Permalink
Add comment about having to dispose the Graphics object
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Jan 26, 2024
1 parent 3bb3534 commit e54f626
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 e54f626

Please sign in to comment.