Struct LoadTextureByBytes
Loads a texture from the bytes of an encoded image file, such as a PNG or JPEG.
public readonly record struct LoadTextureByBytes : ITextureParameters, IEquatable<LoadTextureByBytes>
- Implements
- Inherited Members
Constructors
LoadTextureByBytes(byte[], Color?)
Loads a texture from the bytes of an encoded image file, such as a PNG or JPEG.
public LoadTextureByBytes(byte[] Bytes, Color? ColorKey = null)
Parameters
Bytesbyte[]The encoded image.
ColorKeyColor?The colour made fully transparent, or null to keep the image as it is.
Properties
Bytes
The encoded image.
public byte[] Bytes { get; init; }
Property Value
- byte[]
ColorKey
The colour made fully transparent, or null to keep the image as it is.
public Color? ColorKey { get; init; }