Pixel.cs 467 B

123456789101112131415161718192021
  1. namespace TEAMModelOS.SDK.PngQuant
  2. {
  3. public struct Pixel
  4. {
  5. public Pixel(byte alpha, byte red, byte green, byte blue) : this()
  6. {
  7. Alpha = alpha;
  8. Red = red;
  9. Green = green;
  10. Blue = blue;
  11. Argb = alpha << 24 | red << 16 | green << 8 | blue;
  12. }
  13. public byte Alpha;
  14. public byte Red;
  15. public byte Green;
  16. public byte Blue;
  17. public int Argb;
  18. }
  19. }