示例#1
0
        public static Bitmap ToFrontBitmap(Scene scene)
        {
            var bitmap   = new Bitmap(scene.Width, scene.Depth);
            var graphics = Graphics.FromImage(bitmap);

            foreach (var slice in scene.Slices)
            {
                var centerRow = slice.Value.CenterRow;
                graphics.DrawImage(BitmapConventer.ToBitmap(centerRow), new Point(0, (int)(scene.Depth - scene.Depth * (slice.Key - 0.5) / scene.Slices.Count)));
            }

            return(bitmap);
        }
示例#2
0
 public Bitmap ToBitmap()
 {
     return(BitmapConventer.ToBitmap(this));
 }