---
title: "DisposalMethod Enumeration"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_DisposalMethod.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# DisposalMethod Enumeration
 
Contains values for disposal methods used in animated files (GIF, SWF) to specify what to do with a frame after it has been displayed.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Enumeration DisposalMethod
```
 
```csharp
public enum DisposalMethod
```
 
## Members

|   |  Member name |  Description |
| --- | --- | --- |
 |   |  Previous |  Restore to previous. The decoder is required to restore the area overwritten by a frame with what was there prior to rendering the frame. |
 |   |  NotSpecified |  The decoder is not required to take any action. |
 |   |  Background |  Restore to background color. The area used by a frame will be restored to the background color. |
 |   |  None |  A frame will be left in place. |
   
## See Also

### Reference

- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
