Class TexturePixels
Represents a data format of pixels of a texture element
Inheritance
TexturePixels
Assembly: SlipeClient.dll
Syntax
public class TexturePixels
Constructors
|
Improve this Doc
View Source
TexturePixels(String)
Create a Texturepixels object from a pixel string
Declaration
public TexturePixels(string pixelString)
Parameters
Type |
Name |
Description |
String |
pixelString |
|
Properties
|
Improve this Doc
View Source
Format
Declaration
public ImageFormat Format { get; }
Property Value
|
Improve this Doc
View Source
Size
This function gets the dimensions of pixels contained in a string
Declaration
public Vector2 Size { get; }
Property Value
Methods
|
Improve this Doc
View Source
Convert(ImageFormat, Int32)
Converts the pixels to a certain image format
Declaration
public string Convert(ImageFormat format, int quality = 80)
Parameters
Returns
|
Improve this Doc
View Source
GetPixelColor(Vector2)
This function gets the color of a single pixel from pixels contained in a string.
Declaration
public Color GetPixelColor(Vector2 coordinate)
Parameters
Type |
Name |
Description |
Vector2 |
coordinate |
|
Returns
|
Improve this Doc
View Source
SetPixelColor(Vector2, Color)
This function sets the color of a single pixel for pixels contained in a string. Converts format to plain
Declaration
public bool SetPixelColor(Vector2 coordinate, Color color)
Parameters
Returns