BGC Tools
Static Public Member Functions
BGC.UI.GraphicExtensions 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 Graphic image, float a)
 Set alpha of an image's color More...
 
static void SetR (this Graphic image, float r)
 Set red of an image's color More...
 
static void SetG (this Graphic image, float g)
 Set green of an image's color More...
 
static void SetB (this Graphic image, float b)
 Set blue of an image's color More...
 
static void SetRB (this Graphic image, float r, float b)
 Set red and blue of an image's color More...
 
static void SetRG (this Graphic image, float r, float g)
 Set red and green of an image's color More...
 
static void SetRA (this Graphic image, float r, float a)
 Set red and alpha of an image's color More...
 
static void SetGB (this Graphic image, float g, float b)
 Set green and blue of an image's color More...
 
static void SetGA (this Graphic image, float g, float a)
 Set green and alpha of an image's color More...
 
static void SetBA (this Graphic image, float b, float a)
 Set blue and alpha of an image's color More...
 
static void SetRGB (this Graphic image, float r, float g, float b)
 set red, green, and blue of an image's color More...
 
static void SetRGA (this Graphic image, float r, float g, float a)
 Set red, green, and alpha of an image's color More...
 
static void SetRBA (this Graphic image, float r, float b, float a)
 Set red, blue, and alpha of an image's color More...
 
static void SetGBA (this Graphic image, float g, float b, float a)
 Set green, blue, and alpha of an image's color More...
 
static void SetRGBA (this Graphic 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 GraphicExtensions.cs.

Member Function Documentation

◆ SetA()

static void BGC.UI.GraphicExtensions.SetA ( this Graphic  image,
float  a 
)
inlinestatic

Set alpha of an image's color

Parameters
image
a

Definition at line 16 of file GraphicExtensions.cs.

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

◆ SetB()

static void BGC.UI.GraphicExtensions.SetB ( this Graphic  image,
float  b 
)
inlinestatic

Set blue of an image's color

Parameters
image
b

Definition at line 46 of file GraphicExtensions.cs.

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

◆ SetBA()

static void BGC.UI.GraphicExtensions.SetBA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetG()

static void BGC.UI.GraphicExtensions.SetG ( this Graphic  image,
float  g 
)
inlinestatic

Set green of an image's color

Parameters
image
g

Definition at line 36 of file GraphicExtensions.cs.

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

◆ SetGA()

static void BGC.UI.GraphicExtensions.SetGA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetGB()

static void BGC.UI.GraphicExtensions.SetGB ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetGBA()

static void BGC.UI.GraphicExtensions.SetGBA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetR()

static void BGC.UI.GraphicExtensions.SetR ( this Graphic  image,
float  r 
)
inlinestatic

Set red of an image's color

Parameters
image
r

Definition at line 26 of file GraphicExtensions.cs.

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

◆ SetRA()

static void BGC.UI.GraphicExtensions.SetRA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRB()

static void BGC.UI.GraphicExtensions.SetRB ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRBA()

static void BGC.UI.GraphicExtensions.SetRBA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRG()

static void BGC.UI.GraphicExtensions.SetRG ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRGA()

static void BGC.UI.GraphicExtensions.SetRGA ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRGB()

static void BGC.UI.GraphicExtensions.SetRGB ( this Graphic  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 GraphicExtensions.cs.

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

◆ SetRGBA()

static void BGC.UI.GraphicExtensions.SetRGBA ( this Graphic  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 GraphicExtensions.cs.

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

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