public CommonLinearGradientBrush( CommonPoint startPoint, CommonPoint endPoint, IEnumerable <CommonGradientStop> stops, CommonColorInterpolationMode colorInterpolationMode = CommonColorInterpolationMode.SRgbLinearInterpolation, CommonBrushMappingMode mappingMode = CommonBrushMappingMode.RelativeToBoundingBox, CommonGradientSpreadMethod spreadMethod = CommonGradientSpreadMethod.Pad, double opacity = 1.0) : base(stops, colorInterpolationMode, mappingMode, spreadMethod, opacity) { StartPoint = startPoint; EndPoint = endPoint; }
public CommonImageBrush( string imageSource, CommonAlignmentX alignmentX, CommonAlignmentY alignmentY, CommonStretch stretch, CommonTileMode tileMode, CommonRectangle viewBox, CommonBrushMappingMode viewBoxUnits, CommonRectangle viewPort, CommonBrushMappingMode viewPortUnits, double opacity = 1.0) : base(alignmentX, alignmentY, stretch, tileMode, viewBox, viewBoxUnits, viewPort, viewPortUnits, opacity) { ImageSource = imageSource; }
public CommonRadialGradientBrush( CommonPoint center, CommonPoint gradientOrigin, double radiusX, double radiusY, IEnumerable <CommonGradientStop> stops, CommonColorInterpolationMode colorInterpolationMode = CommonColorInterpolationMode.SRgbLinearInterpolation, CommonBrushMappingMode mappingMode = CommonBrushMappingMode.RelativeToBoundingBox, CommonGradientSpreadMethod spreadMethod = CommonGradientSpreadMethod.Pad, double opacity = 1.0) : base(stops, colorInterpolationMode, mappingMode, spreadMethod, opacity) { Center = center; GradientOrigin = gradientOrigin; RadiusX = radiusX; RadiusY = radiusY; }
protected CommonGradientBrush( IEnumerable <CommonGradientStop> stops, CommonColorInterpolationMode colorInterpolationMode = CommonColorInterpolationMode.SRgbLinearInterpolation, CommonBrushMappingMode mappingMode = CommonBrushMappingMode.RelativeToBoundingBox, CommonGradientSpreadMethod spreadMethod = CommonGradientSpreadMethod.Pad, double opacity = 1.0) : base(opacity) { if (stops == null) { throw new ArgumentNullException(nameof(stops)); } GradientStops = stops.ToArray(); ColorInterpolationMode = colorInterpolationMode; MappingMode = mappingMode; SpreadMethod = spreadMethod; }
public CommonTileBrush( CommonAlignmentX alignmentX, CommonAlignmentY alignmentY, CommonStretch stretch, CommonTileMode tileMode, CommonRectangle viewBox, CommonBrushMappingMode viewBoxUnits, CommonRectangle viewPort, CommonBrushMappingMode viewPortUnits, double opacity = 1.0) : base(opacity) { AlignmentX = alignmentX; AlignmentY = alignmentY; Stretch = stretch; TileMode = tileMode; ViewBox = viewBox; ViewBoxUnits = viewBoxUnits; ViewPort = viewPort; ViewPortUnits = viewPortUnits; }