Image.Dispose Method

 

Releases all resources used by this Image.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by this Image.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the Image and optionally releases the managed resources.

System_CAPS_noteNote

Always call Dispose before you release your last reference to the Image. Otherwise, the resources it is using will not be freed until the garbage collector calls the Image object's Finalize method.

Return to top
Show: