This file contains 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
using System; | |
using System.Runtime.InteropServices; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; | |
namespace ClipboardRegex | |
{ | |
static class Program | |
{ | |
[STAThread] |
This file contains 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
using System.Drawing; | |
public static class GraphicHelpers | |
{ | |
/// <summary> | |
/// Changes the overall transparency of an image | |
/// </summary> | |
/// <param name="originalImage">The input image to be tuned</param> | |
/// <param name="alpha">the desired alpha value. It is based on the 255 alpha pixels</param> | |
/// <param name="antialias">To conserve the antialiasing on the image</param> |
This file contains 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
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System; | |
using System.Windows.Forms; | |
public static class SplitImages | |
{ | |
/// <summary> | |
/// Splits an image into a section |
This file contains 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
using System; | |
public static class GetEnum | |
{ | |
public static T? EnumGet<T>(string text) where T : struct | |
{ | |
if (Enum.IsDefined(typeof(T), text)) | |
return (T)Enum.Parse(typeof(T), text); | |
return null; | |
} | |
} |