dotnet / dotnet/dotnet-api-docs

Disposing bitmaps

Open
#1,452 1 comment 2 reactions 0 assignees View on GitHub
area-System.Drawing dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Not all examples are properly disposing the constructed bitmaps. I know this is a trivial matter and here omitted for brevity, but it is also very important, because I've seen people doing that in production code where it is baaaaaaad.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 2e245e89-208e-c5e9-a328-d1c2722fd286
* Version Independent ID: 50705b51-5146-761e-4ed4-057dfcc79015
* Content: [Image.Save Method (System.Drawing)](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.save?view=netframework-4.7.2)
* Content Source: [xml/System.Drawing/Image.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Drawing/Image.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.