/// <summary> /// Loads data into the class, called by constructors. /// </summary> /// <param name="color1">The first color for this entry.</param> /// <param name="color2">The second color for this entry.</param> /// <param name="borderColor">The border color for this entry.</param> /// <param name="borderWidth">The border width for this entry.</param> /// <param name="brushSBSFocus">The focus for the SigmaBellShape.</param> /// <param name="brushSBSScale">The scale for the SigmaBellShape.</param> protected void LoadData(eBrushTypes brushType, Color color1, Color color2, Color borderColor, float borderWidth, float brushAngle, float brushSBSFocus, float brushSBSScale) { _BorderColor = borderColor; _BorderWidth = borderWidth; _Color1 = color1; _Color2 = color2; _BrushType = brushType; _BrushAngle = brushAngle; _BrushSBSFocus = brushSBSFocus; _BrushSBSScale = brushSBSScale; }
/// <summary> /// Creates new instance of the object. /// </summary> /// <param name="color1">The first color for this entry.</param> /// <param name="color2">The second color for this entry.</param> /// <param name="borderColor">The border color for this entry.</param> /// <param name="borderWidth">The border width for this entry.</param> /// <param name="brushAngle">The gradient angle.</param> public ColorData(eBrushTypes brushType, Color color1, Color color2, Color borderColor, float borderWidth, float brushAngle) { LoadData(brushType, color1, color2, borderColor, borderWidth, brushAngle, 0.5f, 1.0f); }
/// <summary> /// Creates new instance of the object. /// </summary> /// <param name="color1">The first color for this entry.</param> /// <param name="color2">The second color for this entry.</param> /// <param name="borderColor">The border color for this entry.</param> /// <param name="borderWidth">The border width for this entry.</param> /// <param name="brushSBSFocus">The focus for the SigmaBellShape.</param> /// <param name="brushSBSScale">The scale for the SigmaBellShape.</param> public ColorData(eBrushTypes brushType, Color color1, Color color2, Color borderColor, float borderWidth, float brushSBSFocus, float brushSBSScale) { LoadData(brushType, color1, color2, borderColor, borderWidth, 0.0f, brushSBSFocus, brushSBSScale); }
/// <summary> /// Creates new instance of the object. /// </summary> /// <param name="color1">The first color for this entry.</param> /// <param name="color2">The second color for this entry.</param> public ColorData(eBrushTypes brushType, Color color1, Color color2) { LoadData(brushType, color1, color2, Color.White, 0.0f, 0.0f, 0.5f, 1.0f); }