/// <summary> /// Sets the images to be drawn and refreshed on this key. /// </summary> /// <param name="image">Path to UP image.</param> /// <param name="downImage">Path to DOWN image.</param> /// <param name="interval">The interval (in milliseconds) at which to refresh the images.</param> public void Set(string image, string downImage, int interval = 42) { Renderer = new DynamicKeyImageRenderer(KeyType, image, downImage, interval); }
/// <summary> /// Sets the images for each state of the dynamic key. /// </summary> /// <param name="image">Image for the UP state.</param> /// <param name="downImage">Image for the DOWN state.</param> public void Draw(string image, string downImage) { DynamicKeyImageRenderer.Draw(KeyType, image, downImage); }
/// <summary> /// Sets the image for a specific state on this dynamic key. /// </summary> /// <param name="state">The state to set an image for.</param> /// <param name="image">The image file to set.</param> public void Draw(DynamicKeyState state, string image) { DynamicKeyImageRenderer.Draw(KeyType, state, image); }
/// <summary> /// Sets a static image to both states of the dynamic key. /// </summary> /// <param name="image">Path to the image file.</param> public override void Draw(string image) { DynamicKeyImageRenderer.Draw(KeyType, image); }