Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class StreamExtensions

    Namespace
    AetherUtils.Core.Extensions
    Assembly
    AetherUtils.Core.dll
    Provides extension methods for manipulating Stream objects.
    [UsedImplicitly]
    public static class StreamExtensions
    Inheritance
    object
    StreamExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Methods

    ToImage(Stream)

    Get an Image represented by a Stream.
    [UsedImplicitly]
    public static Image ToImage(this Stream stream)

    Parameters

    stream Stream
    The Stream containing properly formatted image data.

    Returns

    Image
    A new Image.

    Exceptions

    ArgumentNullException
    If stream was null.
    FormatException
    If stream did not have a valid ImageFormat.
    (c) 2024 Ethan Hann. All rights reserved.