public static void SaveAsIcon(
this IEnumerable<Image> images,
Stream stream,
bool forceUncompressedResult = false
)
<ExtensionAttribute>
Public Shared Sub SaveAsIcon (
images As IEnumerable(Of Image),
stream As Stream,
Optional forceUncompressedResult As Boolean = false
)
public:
[ExtensionAttribute]
static void SaveAsIcon(
IEnumerable<Image^>^ images,
Stream^ stream,
bool forceUncompressedResult = false
)
[<ExtensionAttribute>]
static member SaveAsIcon :
images : IEnumerable<Image> *
stream : Stream *
?forceUncompressedResult : bool
(* Defaults:
let _forceUncompressedResult = defaultArg forceUncompressedResult false
*)
-> unit
The icon can be saved even without a registered Icon encoder in the current operating system.
If the saved image is reloaded by the Bitmap(Stream) constructor, then it will have always Format32bppArgb pixel format. The indexed and 24 BPP pixel formats are preserved though if the saved stream is reloaded by the Icon(Stream) constructor.
ArgumentNullException | images or stream is . |
ArgumentException | images contains a element. |