BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BrawlLib.Imaging.RGBPixel Struct Reference

Public Member Functions

override string ToString ()
 

Static Public Member Functions

static operator RGBPixel (ARGBPixel p)
 
static operator ARGBPixel (RGBPixel p)
 
static operator Color (RGBPixel p)
 
static operator RGBPixel (Color p)
 
static RGBPixel FromIntensity (byte value)
 

Public Attributes

byte B
 
byte G
 
byte R
 

Member Function Documentation

◆ FromIntensity()

static RGBPixel BrawlLib.Imaging.RGBPixel.FromIntensity ( byte  value)
inlinestatic
589 {
590 return new RGBPixel {R = value, G = value, B = value};
591 }
byte G
Definition: PixelTypes.cs:566
byte B
Definition: PixelTypes.cs:566
byte R
Definition: PixelTypes.cs:566

◆ operator ARGBPixel()

static BrawlLib.Imaging.RGBPixel.operator ARGBPixel ( RGBPixel  p)
inlineexplicitstatic
574 {
575 return new ARGBPixel {A = 0xFF, R = p.R, G = p.G, B = p.B};
576 }

◆ operator Color()

static BrawlLib.Imaging.RGBPixel.operator Color ( RGBPixel  p)
inlineexplicitstatic
579 {
580 return Color.FromArgb(p.R, p.G, p.B);
581 }

◆ operator RGBPixel() [1/2]

static BrawlLib.Imaging.RGBPixel.operator RGBPixel ( ARGBPixel  p)
inlineexplicitstatic
569 {
570 return new RGBPixel {R = p.R, G = p.G, B = p.B};
571 }

◆ operator RGBPixel() [2/2]

static BrawlLib.Imaging.RGBPixel.operator RGBPixel ( Color  p)
inlineexplicitstatic
584 {
585 return new RGBPixel {R = p.R, G = p.G, B = p.B};
586 }

◆ ToString()

override string BrawlLib.Imaging.RGBPixel.ToString ( )
inline
594 {
595 return $"R:{R:X2} G:{G:X2} B:{B:X2}";
596 }

Member Data Documentation

◆ B

byte BrawlLib.Imaging.RGBPixel.B

◆ G

byte BrawlLib.Imaging.RGBPixel.G

◆ R

byte BrawlLib.Imaging.RGBPixel.R

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