private void ImageGSTimer_Tick(object sender, EventArgs e) { if (SpatialLightModulator.IsVisible()) { SpatialLightModulator.Render(); SpatialLightModulator.Show(); } }
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(); } }