BitmapEncoder::Frames Property
.NET Framework (current version)
Gets or sets the individual frames within an image.
Assembly: PresentationCore (in PresentationCore.dll)
public: property IList<BitmapFrame^>^ Frames { virtual IList<BitmapFrame^>^ get(); virtual void set(IList<BitmapFrame^>^ value); }
Property Value
Type: System.Collections.Generic::IList<BitmapFrame^>^A collection of BitmapFrame objects within the image.
| Exception | Condition |
|---|---|
| ArgumentNullException | The BitmapFrame value that is passed to the encoder is null. |
Only Tagged Image File Format (TIFF), Graphics Interchange Format (GIF), and Microsoft Windows Media Photo images support more than one frame. Attempts to add additional frames to formats that do not support them will result in only the first frame being encoded.
You cannot use this property in Extensible Application Markup Language (XAML).
.NET Framework
Available since 3.0
Available since 3.0
Show: