WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct HsvColor

    Show / Hide Table of Contents

    Struct HsvColor

    Structure describes HSV color.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public struct HsvColor

    Constructors

    HsvColor(Double, Double, Double)

    Initializes a new instance of the HsvColor struct.

    Declaration
    public HsvColor(double h, double s, double v)
    Parameters
    Type Name Description
    System.Double h

    The hue value.

    System.Double s

    The saturation.

    System.Double v

    The brightness.

    Fields

    H

    Hue parameter.

    Declaration
    public double H
    Field Value
    Type Description
    System.Double

    S

    Saturation parameter.

    Declaration
    public double S
    Field Value
    Type Description
    System.Double

    V

    Brightness parameter.

    Declaration
    public double V
    Field Value
    Type Description
    System.Double

    Methods

    ConvertHsvToRgb(Double, Double, Double)

    Converts HSV color to RGB color.

    Declaration
    public static Color ConvertHsvToRgb(double h, double s, double v)
    Parameters
    Type Name Description
    System.Double h

    The H parameter.

    System.Double s

    The S parameter.

    System.Double v

    The V parameter.

    Returns
    Type Description
    System.Windows.Media.Color

    RGB color.

    ConvertRgbToHsv(Int32, Int32, Int32)

    Converts RGB color to HSV color.

    Declaration
    public static HsvColor ConvertRgbToHsv(int r, int b, int g)
    Parameters
    Type Name Description
    System.Int32 r

    The R parameter.

    System.Int32 b

    The B parameter.

    System.Int32 g

    The G parameter.

    Returns
    Type Description
    HsvColor

    HSV color.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved