This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Creates color with corrected brightness. | |
/// </summary> | |
/// <param name="color">Color to correct.</param> | |
/// <param name="correctionFactor">The brightness correction factor. Must be between -1 and 1. | |
/// Negative values produce darker colors.</param> | |
/// <returns> | |
/// Corrected <see cref="Color"/> structure. | |
/// </returns> | |
public static Color ChangeColorBrightness(Color color, float correctionFactor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Gist | |
{ | |
using System.Runtime.InteropServices; | |
//NOTICE : Applicable only to Windows and wav files | |
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
/// <summary> | |
/// A class that uses PInvoke to play a wave file in DotNet Core, .Net and Net5.0. This function | |
/// will not work on non Windows platforms, but does work on alternative UI frameworks such as |