Struct LoadTextureByFileName
Loads a texture from an image file.
public readonly record struct LoadTextureByFileName : ITextureParameters, IEquatable<LoadTextureByFileName>
- Implements
- Inherited Members
Constructors
LoadTextureByFileName(string, Color?)
Loads a texture from an image file.
public LoadTextureByFileName(string FileName, Color? ColorKey = null)
Parameters
FileNamestringThe path of the image file.
ColorKeyColor?The colour made fully transparent when the file is loaded, or null to keep the image as it is.
Properties
ColorKey
The colour made fully transparent when the file is loaded, or null to keep the image as it is.
public Color? ColorKey { get; init; }
Property Value
FileName
The path of the image file.
public string FileName { get; init; }