Пример #1
0
        private void listBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            // 選択されたFrameFilterInfoオブジェクトの取得 *
            FrameFilterInfo ffi = (FrameFilterInfo)listBox2.SelectedItem;

            if (ffi != null)
            {
                // 新しいFrameFilterインスタンスの作成
                FrameFilter newFrameFilter = icImagingControl1.FrameFilterCreate(ffi);

                // ライブモードである場合は停止
                bool wasLive = icImagingControl1.LiveVideoRunning;
                if (wasLive)
                {
                    icImagingControl1.LiveStop();
                }

                // 新しいフレームフィルタをセットする
                icImagingControl1.DeviceFrameFilters.Clear();
                icImagingControl1.DeviceFrameFilters.Add(newFrameFilter);

                // ライブモードがアクティブの場合再スタート
                if (wasLive)
                {
                    icImagingControl1.LiveStart();
                }
                label3.Text     = newFrameFilter.Name;
                button1.Enabled = newFrameFilter.HasDialog;
                button2.Enabled = true;
            }
        }
Пример #2
0
        public void A()
        {
            var scale = FrameFilter.Create(CallSyntax.Parse("frame(11)"));

            Assert.Equal("frame(11)", scale.Canonicalize());
        }