Table of Contents

Struct LoadTextureByBytes

Namespace
BSGameLib.Game.Textures
Assembly
BSGameLib.Game.dll

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

Bytes byte[]

The encoded image.

ColorKey Color?

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; }

Property Value

Color?