示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            modelReader = new ModelReader(@"ModelReader.py", "oneshot");
            VisualExamples visualexampler = new VisualExamples(AppDomain.CurrentDomain.BaseDirectory +
                                                               "/images_background");

            f = new FreeWritingWindow();
            Application.Run(f);
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            typeof(Panel).InvokeMember("DoubleBuffered", System.Reflection.BindingFlags.SetProperty
                                       | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic, null,
                                       drawable, new object[] { true });

            bmp = new Bitmap(drawable.ClientSize.Width, drawable.ClientSize.Height,
                             System.Drawing.Imaging.PixelFormat.Format32bppPArgb);

            drawable.MouseDown += drawable_MouseDown;
            drawable.MouseMove += drawable_MouseMove;
            drawable.Paint     += drawable_Paint;

            g = Graphics.FromImage(bmp);
            g.Clear(Color.Black);

            modelReader = new ModelReader(@"D:\_BigFatProjects\ScribbleGraphy\Mixed\WorkingControls\WorkingControls\bin\Debug\ModelReader.py"
                                          , "model");
            modelReader.SoftmaxFire += OnSoftmaxFire;
        }