コード例 #1
0
 /// <summary>
 /// 新しいLayerSetRendererを構築する。
 /// </summary>
 public LayerSetRenderer()
 {
     renderImage   = null;
     layerSet      = null;
     isDisposed    = false;
     isNeedRedraw  = false;
     images        = new Dictionary <string, ImageBuffer>();
     PreferredSize = new Size(0, 0);
     RenderSize    = new Size(0, 0);
 }
コード例 #2
0
        /// <summary>
        /// 新しいFormMainを構築する。
        /// </summary>
        public FormMain()
        {
            layerSet                = new LayerSet();
            renderer                = new LayerSetRenderer();
            renderer.LayerSet       = layerSet;
            isLayerSetMouseDragging = false;
            isLayerSetAdjustMode    = false;
            layerSetDragLocation    = new Point(0, 0);
            scrollPosX              = 0;
            scrollPosY              = 0;
            InitializeComponent();
            layerSet.Added   += OnLayerAdded;
            layerSet.Removed += OnLayerRemoved;
            layerSetViewControl.LayerSetRenderer = renderer;
            layerSet.DataChanged     += OnLayerSetDataChanged;
            layerSet.PropertyChanged += OnLayerSetPropertyChanged;

            numericUpDownRenderingScale.Minimum = (decimal)(LayerSet.MinRenderScale);
            numericUpDownRenderingScale.Maximum = (decimal)(LayerSet.MaxRenderScale);
        }