Ejemplo n.º 1
0
        //
        private void barButtonItem_HoChieuNoMin_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Lcad.PropPutInt(hDrw, Lcad.LC_PROP_DRW_COLORBACKM, int.Parse("FFFFFF", System.Globalization.NumberStyles.HexNumber));
            Lcad.PropPutInt(hDrw, Lcad.LC_PROP_DRW_COLORFOREM, int.Parse("000000", System.Globalization.NumberStyles.HexNumber));
            Lcad.PropPutStr(layerLoMin, Lcad.LC_PROP_LAYER_COLOR, "blue");
            Lcad.WndExeCommand(hWnd, Lcad.LC_CMD_REGEN, 0);
            Lcad.DrwRegenViews(hDrw, 0);
            Lcad.Initialize();
            int    hView    = Lcad.PropGetHandle(hDrw, Lcad.LC_PROP_DRW_VIEW);
            String fullPath = Path.GetFullPath(Path.Combine((@"" + Application.StartupPath), @"..\..\"));

            Lcad.ViewRasterize(hView, fullPath + "Template\\ViewTemp.bmp", 0, 0, 0, 0, 10);
            Lcad.PropPutInt(hDrw, Lcad.LC_PROP_DRW_COLORBACKM, int.Parse("000000", System.Globalization.NumberStyles.HexNumber));
            Lcad.PropPutInt(hDrw, Lcad.LC_PROP_DRW_COLORFOREM, int.Parse("FFFFFF", System.Globalization.NumberStyles.HexNumber));
            Lcad.PropPutStr(layerLoMin, Lcad.LC_PROP_LAYER_COLOR, "cyan");
            Lcad.WndExeCommand(hWnd, Lcad.LC_CMD_REGEN, 0);
            Lcad.DrwRegenViews(hDrw, 0);
            Lcad.Initialize();
            FormBaoCaoThongKe fm = new FormBaoCaoThongKe(hoChieuChinh);

            fm.Show();
        }
Ejemplo n.º 2
0
        //test
        private void button1_Click(object sender, EventArgs e)
        {
            int hView = Lcad.PropGetHandle(hDrw, Lcad.LC_PROP_DRW_VIEW);

            Lcad.ViewRasterize(hView, @"E:\Sample1.bmp", 0, 0, 0, 0, 10);
        }