Show / Hide Table of Contents

Class TexturePixels

Represents a data format of pixels of a texture element

Inheritance
Object
TexturePixels
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Dx
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

Get the format of pixels

Declaration
public ImageFormat Format { get; }
Property Value
Type Description
ImageFormat
| Improve this Doc View Source

Size

This function gets the dimensions of pixels contained in a string

Declaration
public Vector2 Size { get; }
Property Value
Type Description
Vector2

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
Type Name Description
ImageFormat format
Int32 quality
Returns
Type Description
String
| 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
Type Description
Color
| 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
Type Name Description
Vector2 coordinate
Color color
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX