예제 #1
0
 public void Set(IBitmapProvider provider, int interval = 42)
 {
     Renderer = new BitmapRenderer(this, provider, interval);
 }
예제 #2
0
 /// <summary>
 /// Draws a <see cref="Bitmap" /> to this <see cref="RenderTarget" />.
 /// </summary>
 /// <param name="bitmap">The bitmap object to draw.</param>
 /// <remarks>
 /// The size of the bitmap object should match the size of the target
 /// display. For the <see cref="Touchpad" />, the size is specified by
 /// <see cref="Razer.Constants.TouchpadWidth" /> and <see cref="Razer.Constants.TouchpadHeight"/>,
 /// for dynamic keys, it's specified by <see cref="Razer.Constants.DynamicKeyWidth" /> and
 /// <see cref="Razer.Constants.DynamicKeyHeight" />.
 /// </remarks>
 public void Draw(Bitmap bitmap)
 {
     BitmapRenderer.Draw(this, bitmap);
 }