public byte[] GetBytes() { using (var png = new PngBuilder()) { var data = Draw(); png.WriteHeader(scaledSize, scaledSize, 1, 0); png.WriteData(data); png.WriteEnd(); return(png.GetBytes()); } }
public byte[] GetBytes() { using (var png = new PngBuilder()) { var data = Draw(); png.WriteHeader(scaledSize, scaledSize, 1, 0); png.WriteData(data); png.WriteEnd(); return(png.GetBytes()); } }