예제 #1
0
 private void buttonAngledView_Click(object sender, EventArgs e)
 {
     Globedrawer gd = new Globedrawer(
         panelPreview.Size.Width,
         loadSource(),
         Color.Gray,
         new Skeleton(textBoxSkeleton.Text),
         true);
     panelPreview.BackgroundImage = new DMSImage(gd).Bitmap;
 }
예제 #2
0
        static void Main(string[] args)
        {
            //Usage
            if( args.Count() != 3 && args.Count() != 2 )
            {
                Console.WriteLine( "Usage globedrawer <SkeletonName.skl> <OutputImg> [SourceImg]\n\n" );
                return;
            }

            //Read in Skeleton
            Skeleton skel = new Skeleton( args[0] );

            //Read in Source image
            DMSImage source = null;
            if( args.Count() == 3 )
                source = new DMSImage(args[2]);

            bool bDrawAsSphere = false;
            Globedrawer drawer = new Globedrawer(1500, source, Color.Gray, skel, bDrawAsSphere);

            DMSImage output = new DMSImage(drawer);
            output.Save(args[1]);
        }