Class Texture
Inheritance
System.Object
Texture
Implements
System.IDisposable
Assembly: AxEngine.dll
Syntax
public class Texture : SceneObject, IDisposable
Properties
|
Improve this Doc
View Source
Height
Declaration
public int Height { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Label
Declaration
public string Label { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Size
Declaration
public Vector2i Size { get; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector2i |
|
|
Improve this Doc
View Source
SourcePath
Declaration
public string SourcePath { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Width
Declaration
public int Width { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
CreateFromFile(String)
Declaration
public static Texture CreateFromFile(string sourcePath)
Parameters
Type |
Name |
Description |
System.String |
sourcePath |
|
Returns
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
GetFromBitmap(Image, String, Boolean)
Declaration
public static Texture GetFromBitmap(Image bitmap, string name = null, bool autoDisposeBitmap = false)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image |
bitmap |
|
System.String |
name |
|
System.Boolean |
autoDisposeBitmap |
|
Returns
|
Improve this Doc
View Source
GetFromFile(String)
Declaration
public static Texture GetFromFile(string sourcePath)
Parameters
Type |
Name |
Description |
System.String |
sourcePath |
|
Returns
|
Improve this Doc
View Source
SetData(Image)
Declaration
public void SetData(Image bitmap)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image |
bitmap |
|
|
Improve this Doc
View Source
Sync()
Declaration
Implements
System.IDisposable