コード例 #1
0
        public Plottable.Image PlotBitmap(
            Bitmap bitmap,
            double x,
            double y,
            string label        = null,
            Alignment alignment = Alignment.MiddleLeft,
            double rotation     = 0,
            Color?frameColor    = null,
            int frameSize       = 0
            )
        {
            Plottable.Image plottableImage = new Plottable.Image()
            {
                Bitmap      = bitmap,
                X           = x,
                Y           = y,
                Label       = label,
                Alignment   = alignment,
                Rotation    = rotation,
                BorderColor = frameColor ?? Color.White,
                BorderSize  = frameSize
            };

            settings.Plottables.Add(plottableImage);
            return(plottableImage);
        }
コード例 #2
0
        /// <summary>
        /// Display an image at a specific coordinate
        /// </summary>
        public Plottable.Image AddImage(Bitmap bitmap, double x, double y)
        {
            Plottable.Image plottable = new Plottable.Image()
            {
                Bitmap = bitmap,
                X      = x,
                Y      = y,
            };

            settings.Plottables.Add(plottable);
            return(plottable);
        }