@@ -30,65 +30,3 @@ internal class AnimatedImageFrameMetadata
3030 /// </summary>
3131 public FrameDisposalMode DisposalMode { get ; set ; }
3232}
33-
34- #pragma warning disable SA1201 // Elements should appear in the correct order
35- internal enum FrameBlendMode
36- #pragma warning restore SA1201 // Elements should appear in the correct order
37- {
38- /// <summary>
39- /// Do not blend. Render the current frame on the canvas by overwriting the rectangle covered by the current frame.
40- /// </summary>
41- Source = 0 ,
42-
43- /// <summary>
44- /// Blend the current frame with the previous frame in the animation sequence within the rectangle covered
45- /// by the current frame.
46- /// If the current has any transparent areas, the corresponding areas of the previous frame will be visible
47- /// through these transparent regions.
48- /// </summary>
49- Over = 1
50- }
51-
52- internal enum FrameDisposalMode
53- {
54- /// <summary>
55- /// No disposal specified.
56- /// The decoder is not required to take any action.
57- /// </summary>
58- Unspecified = 0 ,
59-
60- /// <summary>
61- /// Do not dispose. The current frame is not disposed of, or in other words, not cleared or altered when moving to
62- /// the next frame. This means that the next frame is drawn over the current frame, and if the next frame contains
63- /// transparency, the previous frame will be visible through these transparent areas.
64- /// </summary>
65- DoNotDispose = 1 ,
66-
67- /// <summary>
68- /// Restore to background color. When transitioning to the next frame, the area occupied by the current frame is
69- /// filled with the background color specified in the image metadata.
70- /// This effectively erases the current frame by replacing it with the background color before the next frame is displayed.
71- /// </summary>
72- RestoreToBackground = 2 ,
73-
74- /// <summary>
75- /// Restore to previous. This method restores the area affected by the current frame to what it was before the
76- /// current frame was displayed. It essentially "undoes" the current frame, reverting to the state of the image
77- /// before the frame was displayed, then the next frame is drawn. This is useful for animations where only a small
78- /// part of the image changes from frame to frame.
79- /// </summary>
80- RestoreToPrevious = 3
81- }
82-
83- internal enum FrameColorTableMode
84- {
85- /// <summary>
86- /// The frame uses the shared color table specified by the image metadata.
87- /// </summary>
88- Global ,
89-
90- /// <summary>
91- /// The frame uses a color table specified by the frame metadata.
92- /// </summary>
93- Local
94- }
0 commit comments