예제 #1
0
        /// <summary>
        /// 使用中のリソースをすべてクリーンアップします。
        /// </summary>
        /// <param name="disposing">マネージ リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (renderThread != null))
            {
                foreach (var control in animationControls)
                {
                    control.Image = null;
                }
                foreach (var control in previewControls)
                {
                    control.Image = null;
                }
                renderThread.Dispose();
                renderThread = null;
            }
            if (disposing && (components != null))
            {
                components.Dispose();
            }

            base.Dispose(disposing);
        }
예제 #2
0
        /// <summary>
        /// 新しいインスタンスを構築する。
        /// </summary>
        public CharaChipView()
        {
            viewCounter            = 0;
            charaChipWidth         = 0;
            charaChipHeight        = 0;
            renderThread           = new CharaChipRenderThread();
            renderThread.Rendered += OnImageChanged;

            InitializeComponent();

            animationControls = new CommonControl.ImageViewControl[4]
            {
                imageViewControl1_0, imageViewControl2_0, imageViewControl3_0, imageViewControl4_0,
            };
            previewControls = new CommonControl.ImageViewControl[4, 3]
            {
                { imageViewControl1_1, imageViewControl1_2, imageViewControl1_3 },
                { imageViewControl2_1, imageViewControl2_2, imageViewControl2_3 },
                { imageViewControl3_1, imageViewControl3_2, imageViewControl3_3 },
                { imageViewControl4_1, imageViewControl4_2, imageViewControl4_3 }
            };
        }