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.Collections.Generic; | |
using System.Linq; | |
using HtmlAgilityPack; | |
namespace Amberizer | |
{ | |
public class HtmlUtilites | |
{ | |
public string RemoveUnwantedTags(string data, string[] acceptableTags) | |
{ |
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
private Bitmap ExpandCanvas(System.Drawing.Image inputImage) | |
{ | |
var img = inputImage; | |
// Calculate the square side | |
var max = Math.Max(img.Width, img.Height); | |
int side; | |
var isVertical = false; |