Class ImageTexture
- Namespace
- Bonsai.Shaders.Configuration
- Assembly
- Bonsai.Shaders.dll
Provides configuration and loading functionality for initializing a two-dimensional texture resource from the specified image file.
public class ImageTexture : Texture2D, IResourceConfiguration
- Inheritance
-
ImageTexture
- Implements
- Inherited Members
Properties
ColorType
Gets or sets a value specifying the color type of the loaded image.
public LoadImageFlags ColorType { get; set; }
Property Value
FileName
Gets or sets the name of the image file.
[TypeConverter(typeof(ResourceFileNameConverter))]
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif;*.tiff;*.exr|PNG Files|*.png|BMP Files|*.bmp|JPEG Files|*.jpg;*.jpeg|TIFF Files|*.tif;*.tiff|EXR Files|*.exr|All Files|*.*")]
public string FileName { get; set; }
Property Value
FlipMode
Gets or sets a value specifying the flip mode applied to the loaded image.
public FlipMode? FlipMode { get; set; }
Property Value
Methods
CreateResource(ResourceManager)
Creates a new two-dimensional texture resource from the specified image file.
public override Texture CreateResource(ResourceManager resourceManager)
Parameters
resourceManager
ResourceManagerThe ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.