Struct ImageBuffer
Assembly: Glitch9.IO.dll
Syntax
public readonly struct ImageBuffer : IImageBuffer, IBinarySource, IEmptiable, IImageAsset, IImageChunk
Constructors
|
Edit this page
View Source
Declaration
public ImageBuffer(byte[] bytes, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
Parameters
|
Edit this page
View Source
Declaration
public ImageBuffer(byte[] bytes, MimeType contentType, Metadata metadata = null)
Parameters
|
Edit this page
View Source
Declaration
public ImageBuffer(ReadOnlyMemory<byte> bytes, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
Parameters
|
Edit this page
View Source
Declaration
public ImageBuffer(ReadOnlyMemory<byte> bytes, MimeType contentType, Metadata metadata = null)
Parameters
Properties
|
Edit this page
View Source
Bytes
Declaration
public ReadOnlyMemory<byte> Bytes { get; }
Property Value
|
Edit this page
View Source
ContentType
Declaration
public MimeType ContentType { get; }
Property Value
|
Edit this page
View Source
Encoding
Declaration
public ImageEncoding Encoding { get; }
Property Value
|
Edit this page
View Source
IsEmpty
Gets whether this object is empty.
Declaration
public bool IsEmpty { get; }
Property Value
|
Edit this page
View Source
IsNotEmpty
Declaration
public bool IsNotEmpty { get; }
Property Value
|
Edit this page
View Source
Declaration
public Metadata Metadata { get; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public static ImageBuffer FromBase64String(string base64String, ImageEncoding encoding = ImageEncoding.PNG, Metadata metadata = null)
Parameters
Returns
Implements
Extension Methods