Esempio n. 1
0
        public LegendVm(string minVal, string midVal, string maxVal,
                        Color minCol, Color[] midColors, Color maxColor)
        {
            WbImageVm  = new WbImageVm();
            _minVal    = minVal;
            _midVal    = midVal;
            _maxVal    = maxVal;
            _minCol    = minCol;
            _midColors = midColors;
            _maxColor  = maxColor;

            WbImageVm.ImageData = Id.MakeImageData(
                imageSize: new Sz2 <double>(-1, -1),
                plotPoints: Enumerable.Empty <P2V <float, Color> >(),
                filledRects: PlotRectangles,
                openRects: Enumerable.Empty <RV <float, Color> >(),
                plotLines: Enumerable.Empty <LS2V <float, Color> >()
                );
            var c  = Color.FromRgb((byte)0, (byte)255, (byte)255);
            var c2 = Colors.MediumSeaGreen;
        }
Esempio n. 2
0
 public GraphVm()
 {
     WbImageVm = new WbImageVm();
 }