Search Results for

    Show / Hide Table of Contents

    Struct ImageBuffer

    Implements
    IImageBuffer
    IBinarySource
    IEmptiable
    IImageAsset
    IImageChunk
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Image
    Assembly: Glitch9.IO.dll
    Syntax
    public readonly struct ImageBuffer : IImageBuffer, IBinarySource, IEmptiable, IImageAsset, IImageChunk

    Constructors

    | Edit this page View Source

    ImageBuffer(byte[], ImageEncoding, Metadata)

    Declaration
    public ImageBuffer(byte[] bytes, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
    Parameters
    Type Name Description
    byte[] bytes
    ImageEncoding encoding
    Metadata metadata
    | Edit this page View Source

    ImageBuffer(byte[], MimeType, Metadata)

    Declaration
    public ImageBuffer(byte[] bytes, MimeType contentType, Metadata metadata = null)
    Parameters
    Type Name Description
    byte[] bytes
    MimeType contentType
    Metadata metadata
    | Edit this page View Source

    ImageBuffer(ReadOnlyMemory<byte>, ImageEncoding, Metadata)

    Declaration
    public ImageBuffer(ReadOnlyMemory<byte> bytes, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<byte> bytes
    ImageEncoding encoding
    Metadata metadata
    | Edit this page View Source

    ImageBuffer(ReadOnlyMemory<byte>, MimeType, Metadata)

    Declaration
    public ImageBuffer(ReadOnlyMemory<byte> bytes, MimeType contentType, Metadata metadata = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<byte> bytes
    MimeType contentType
    Metadata metadata

    Properties

    | Edit this page View Source

    Bytes

    Declaration
    public ReadOnlyMemory<byte> Bytes { get; }
    Property Value
    Type Description
    ReadOnlyMemory<byte>
    | Edit this page View Source

    ContentType

    Declaration
    public MimeType ContentType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Encoding

    Declaration
    public ImageEncoding Encoding { get; }
    Property Value
    Type Description
    ImageEncoding
    | Edit this page View Source

    IsEmpty

    Gets whether this object is empty.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsNotEmpty

    Declaration
    public bool IsNotEmpty { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Metadata

    Declaration
    public Metadata Metadata { get; }
    Property Value
    Type Description
    Metadata

    Methods

    | Edit this page View Source

    FromBase64String(string, ImageEncoding, Metadata)

    Declaration
    public static ImageBuffer FromBase64String(string base64String, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
    Parameters
    Type Name Description
    string base64String
    ImageEncoding encoding
    Metadata metadata
    Returns
    Type Description
    ImageBuffer

    Implements

    IImageBuffer
    IBinarySource
    IEmptiable
    IImageAsset
    IImageChunk

    Extension Methods

    IOExtensions.ToSprite(IImageAsset)
    IOExtensions.ToSpriteAsync(IImageAsset)
    IOExtensions.ToTexture2D(IImageAsset)
    IOExtensions.ToTexture2DAsync(IImageAsset)
    IOExtensions.ToTexture2D(IImageChunk)
    IOExtensions.ToTexture2DAsync(IImageChunk)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation