コード例 #1
0
ファイル: ImageGSForm.cs プロジェクト: thelegend831/ImageGS
 private void ImageGSTimer_Tick(object sender, EventArgs e)
 {
     if (SpatialLightModulator.IsVisible())
     {
         SpatialLightModulator.Render();
         SpatialLightModulator.Show();
     }
 }
コード例 #2
0
        private void SetBitmapButton_Click(object sender, System.EventArgs e)
        {
            if (BitmapList.SelectedIndex >= 0 && Bitmaps.Count > 0 && BitmapList.SelectedIndex <= Bitmaps.Count)
            {
                SpatialLightModulator.SetBitmap(ref Bitmaps[BitmapList.SelectedIndex].Bitmap);

                SpatialLightModulator.Show();
            }
        }