Skip to content

Instantly share code, notes, and snippets.

@dkarzon
dkarzon / ImgToXlsx.cs
Last active November 10, 2021 09:29
Console app that reads an image file and creates an excel file with each pixel colour info in the text and cell background (1 Pixel = 1 cell wide x 2 cells high)
using System;
using System.Collections.Generic;
using System.Drawing; // Nuget System.Drawing.Common
using System.Linq;
using IronXL; // Nuget IronXL.Excel
namespace ImgToXlsx
{
class Program
{