BGC Tools
Static Public Member Functions
BGC.UI.ImageExtensions Class Reference

Set of extensions to image that allow for easy modification of the image's color. More...

Static Public Member Functions

static void SetA (this Image image, float a)
 Set alpha of an image's color More...
 
static void SetR (this Image image, float r)
 Set red of an image's color More...
 
static void SetG (this Image image, float g)
 Set green of an image's color More...
 
static void SetB (this Image image, float b)
 Set blue of an image's color More...
 
static void SetRB (this Image image, float r, float b)
 Set red and blue of an image's color More...
 
static void SetRG (this Image image, float r, float g)
 Set red and green of an image's color More...
 
static void SetRA (this Image image, float r, float a)
 Set red and alpha of an image's color More...
 
static void SetGB (this Image image, float g, float b)
 Set green and blue of an image's color More...
 
static void SetGA (this Image image, float g, float a)
 Set green and alpha of an image's color More...
 
static void SetBA (this Image image, float b, float a)
 Set blue and alpha of an image's color More...
 
static void SetRGB (this Image image, float r, float g, float b)
 set red, green, and blue of an image's color More...
 
static void SetRGA (this Image image, float r, float g, float a)
 Set red, green, and alpha of an image's color More...
 
static void SetRBA (this Image image, float r, float b, float a)
 Set red, blue, and alpha of an image's color More...
 
static void SetGBA (this Image image, float g, float b, float a)
 Set green, blue, and alpha of an image's color More...
 
static void SetRGBA (this Image image, float r, float g, float b, float a)
 Set red, green, blue, and alpha of an image's color More...
 

Detailed Description

Set of extensions to image that allow for easy modification of the image's color.

Definition at line 9 of file ImageExtensions.cs.

Member Function Documentation

◆ SetA()

static void BGC.UI.ImageExtensions.SetA ( this Image  image,
float  a 
)
inlinestatic

Set alpha of an image's color

Parameters
image
a

Definition at line 16 of file ImageExtensions.cs.

17  {
18  image.color = image.color.SetA(a);
19  }

◆ SetB()

static void BGC.UI.ImageExtensions.SetB ( this Image  image,
float  b 
)
inlinestatic

Set blue of an image's color

Parameters
image
b

Definition at line 46 of file ImageExtensions.cs.

47  {
48  image.color = image.color.SetB(b);
49  }

◆ SetBA()

static void BGC.UI.ImageExtensions.SetBA ( this Image  image,
float  b,
float  a 
)
inlinestatic

Set blue and alpha of an image's color

Parameters
image
b
a

Definition at line 112 of file ImageExtensions.cs.

113  {
114  image.color = image.color.SetBA(b, a);
115  }

◆ SetG()

static void BGC.UI.ImageExtensions.SetG ( this Image  image,
float  g 
)
inlinestatic

Set green of an image's color

Parameters
image
g

Definition at line 36 of file ImageExtensions.cs.

37  {
38  image.color = image.color.SetG(g);
39  }

◆ SetGA()

static void BGC.UI.ImageExtensions.SetGA ( this Image  image,
float  g,
float  a 
)
inlinestatic

Set green and alpha of an image's color

Parameters
image
g
a

Definition at line 101 of file ImageExtensions.cs.

102  {
103  image.color = image.color.SetGA(g, a);
104  }

◆ SetGB()

static void BGC.UI.ImageExtensions.SetGB ( this Image  image,
float  g,
float  b 
)
inlinestatic

Set green and blue of an image's color

Parameters
image
b
g

Definition at line 90 of file ImageExtensions.cs.

91  {
92  image.color = image.color.SetGB(g, b);
93  }

◆ SetGBA()

static void BGC.UI.ImageExtensions.SetGBA ( this Image  image,
float  g,
float  b,
float  a 
)
inlinestatic

Set green, blue, and alpha of an image's color

Parameters
image
g
b
a

Definition at line 160 of file ImageExtensions.cs.

161  {
162  image.color = image.color.SetGBA(g, b, a);
163  }

◆ SetR()

static void BGC.UI.ImageExtensions.SetR ( this Image  image,
float  r 
)
inlinestatic

Set red of an image's color

Parameters
image
r

Definition at line 26 of file ImageExtensions.cs.

27  {
28  image.color = image.color.SetR(r);
29  }

◆ SetRA()

static void BGC.UI.ImageExtensions.SetRA ( this Image  image,
float  r,
float  a 
)
inlinestatic

Set red and alpha of an image's color

Parameters
image
r
a

Definition at line 79 of file ImageExtensions.cs.

80  {
81  image.color = image.color.SetRA(r, a);
82  }

◆ SetRB()

static void BGC.UI.ImageExtensions.SetRB ( this Image  image,
float  r,
float  b 
)
inlinestatic

Set red and blue of an image's color

Parameters
image
r
b

Definition at line 57 of file ImageExtensions.cs.

58  {
59  image.color = image.color.SetRB(r, b);
60  }

◆ SetRBA()

static void BGC.UI.ImageExtensions.SetRBA ( this Image  image,
float  r,
float  b,
float  a 
)
inlinestatic

Set red, blue, and alpha of an image's color

Parameters
image
r
b
a

Definition at line 148 of file ImageExtensions.cs.

149  {
150  image.color = image.color.SetRBA(r, b, a);
151  }

◆ SetRG()

static void BGC.UI.ImageExtensions.SetRG ( this Image  image,
float  r,
float  g 
)
inlinestatic

Set red and green of an image's color

Parameters
image
r
g

Definition at line 68 of file ImageExtensions.cs.

69  {
70  image.color = image.color.SetRG(r, g);
71  }

◆ SetRGA()

static void BGC.UI.ImageExtensions.SetRGA ( this Image  image,
float  r,
float  g,
float  a 
)
inlinestatic

Set red, green, and alpha of an image's color

Parameters
image
r
g
a

Definition at line 136 of file ImageExtensions.cs.

137  {
138  image.color = image.color.SetRGA(r, g, a);
139  }

◆ SetRGB()

static void BGC.UI.ImageExtensions.SetRGB ( this Image  image,
float  r,
float  g,
float  b 
)
inlinestatic

set red, green, and blue of an image's color

Parameters
image
r
g
b

Definition at line 124 of file ImageExtensions.cs.

125  {
126  image.color = image.color.SetRGB(r, g, b);
127  }

◆ SetRGBA()

static void BGC.UI.ImageExtensions.SetRGBA ( this Image  image,
float  r,
float  g,
float  b,
float  a 
)
inlinestatic

Set red, green, blue, and alpha of an image's color

Parameters
image
r
g
b
a

Definition at line 173 of file ImageExtensions.cs.

174  {
175  image.color = image.color.SetRGBA(r, g, b, a);
176  }

The documentation for this class was generated from the following file: