예제 #1
0
        public static void Main(string[] args)
        {
            GuiHalFactory.SetGuiBackend(GuiHalFactory.KnownGuiFactoriesIndexes.WindowsFormsBitmap);
            //GuiHalFactory.SetGuiBackend(GuiHalFactory.KnownGuiFactoriesIndexes.WindowsFormsOpenGL);

            CameraCalibrationWidgetFactory appWidgetFactory = new CameraCalibrationWidgetFactory();

            AppWidgetInfo appWidgetInfo = appWidgetFactory.GetAppParameters();
            GuiHalWidget primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatBgra32);
            //GuiHalWidget primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatBgr24);
            //GuiHalWidget primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatRgbaFloat);

            primaryWindow.Caption = appWidgetInfo.caption;

            primaryWindow.AddChild(appWidgetFactory.NewWidget());
            primaryWindow.Run();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            GuiHalFactory.SetGuiBackend(GuiHalFactory.KnownGuiFactoriesIndexes.WindowsFormsBitmap);
            //GuiHalFactory.SetGuiBackend(GuiHalFactory.KnownGuiFactoriesIndexes.WindowsFormsOpenGL);

            CameraCalibrationWidgetFactory appWidgetFactory = new CameraCalibrationWidgetFactory();

            AppWidgetInfo appWidgetInfo = appWidgetFactory.GetAppParameters();
            GuiHalWidget  primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatBgra32);

            //GuiHalWidget primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatBgr24);
            //GuiHalWidget primaryWindow = GuiHalFactory.CreatePrimarySurface(appWidgetInfo.width, appWidgetInfo.height, GuiHalWidget.CreateFlags.Resizable, GuiHalWidget.PixelFormat.PixelFormatRgbaFloat);

            primaryWindow.Caption = appWidgetInfo.caption;

            primaryWindow.AddChild(appWidgetFactory.NewWidget());
            primaryWindow.Run();
        }