예제 #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));
 }