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
/// <summary> | |
/// Returns a 1x1 pixel Base64 encoded gif from the given image containing a single dominant color. | |
/// </summary> | |
/// <param name="source">The image this method extends.</param> | |
/// <returns>The <see cref="string"/></returns> | |
public static string ToBase64GifPixelString(this Image source) | |
{ | |
// Leave the original image intact | |
using (Image temp = new Image(source)) | |
{ |