Class Texture
Assembly: SlipeClient.dll
Syntax
public class Texture : Material
Constructors
|
Improve this Doc
View Source
Texture()
Declaration
|
Improve this Doc
View Source
Texture(Vector2, TextureFormat, TextureEdge, TextureType, Int32)
Declaration
public Texture(Vector2 dimensions, TextureFormat textureFormat = TextureFormat.Argb, TextureEdge textureEdge = TextureEdge.Wrap, TextureType textureType = TextureType.TwoDimensional, int depth = 1)
Parameters
|
Improve this Doc
View Source
Texture(String, TextureFormat, Boolean, TextureEdge)
Create a texture element from a file or raw image string
Declaration
public Texture(string filePathOrPixels, TextureFormat textureFormat = TextureFormat.Argb, bool mipmaps = true, TextureEdge textureEdge = TextureEdge.Wrap)
Parameters
Methods
|
Improve this Doc
View Source
GetPixels(Int32)
Get all pixels of this texture
Declaration
public TexturePixels GetPixels(int surfaceIndex = 0)
Parameters
Type |
Name |
Description |
Int32 |
surfaceIndex |
|
Returns
|
Improve this Doc
View Source
GetPixels(Vector2, Vector2, Int32)
Get the pixels of a section of this texture
Declaration
public TexturePixels GetPixels(Vector2 topLeft, Vector2 dimensions, int surfaceIndex = 0)
Parameters
Returns
|
Improve this Doc
View Source
SetEdge(TextureEdge)
Change edge handling with white border if border is selected
Declaration
public bool SetEdge(TextureEdge edge)
Parameters
Returns
|
Improve this Doc
View Source
SetEdge(TextureEdge, Color)
This functions allows you to change the edge handling after creating the texture.
Declaration
public bool SetEdge(TextureEdge edge, Color borderColor)
Parameters
Returns
|
Improve this Doc
View Source
SetPixels(TexturePixels, Vector2, Vector2, Int32)
This function sets the pixels of a texture element. It can be used with a standard texture, render target or screen source.
Declaration
public bool SetPixels(TexturePixels pixels, Vector2 topLeft, Vector2 dimensions, int surfaceIndex = 0)
Parameters
Returns