CSharp System.Drawing Color

CSharp examples for System.Drawing:Color

Description

Click the following links for the tutorial for System.Drawing and Color.

  1. Color To Gray
  2. Alpha blends a color with its destination pixel using the standard formula
  3. Creates a new image, 2 pixels wider and taller than the original. Each pixel's alpha value is the largest alpha value among adjacent pixels on the original image. The color of each pixel will be the color given in the second argument.
  4. Get Color Palette
  5. Determines if two colors equal.
  6. Create SolidColorBrush from Color
  7. Creates a gradient brush from a list of colors.
  8. Color From Name


  9. Get Color Codes
  10. Returns the result of combining the specified colors
  11. Write with console color
  12. Write Line with console color
  13. Construct a color from HSL values
  14. gray scale a Color
  15. linearly interpolates Color
  16. Get Color Distance


  17. Blends two colors together.
  18. To Complement Color
  19. Calculate Color Chromaticity
  20. Lerp between two color
  21. Interpolate color to new color
  22. Pre multiply Alpha for a Color
  23. Get Random Color
  24. Remove Color
  25. Calculates a color by applying the specified alpha value to the specified front color, assuming the color behind the front color is the specified back color. The returned color has the alpha channel set to completely opaque, but whose alpha channel value appears to be the one specified.
  26. Returns a Color struct based on HSL model.
  27. Returns a color based on XAML color string.
  28. Color From HSB
  29. HSB From Color
  30. Get Gradient For Two Colors
  31. Get Gradient For Three Colors
  32. Same color
  33. Color Alpha Blend
  34. Change Color Shade
  35. Lighten Color
  36. produces color between near and far (red and green, for example) given the distances
  37. Calculates the complementary color
  38. Linear interpolation between two Color.
  39. Get Hex Color from r g b value
  40. Get Screen Pixel Color
  41. Decompress an int into a color object.
  42. Compress a color object to an int.
  43. Color From/To Hex
  44. Create Color From Hsb
  45. Change the alpha value of a color
  46. Changes the Color intensity.
  47. Int To the color.
  48. add and sum two colors.
  49. Mix two Color
  50. Color Distance
  51. Calculates a color by applying the specified alpha value to the specified front color.
  52. Multiply colors
  53. Apply alpha to color
  54. Interpolate color. Used to fade the colors from green to red.
  55. Mix alpha to color
  56. Colour distance metric