There are already lots of classes and functions supplied with the .NET to manipulate Images including PNG. Like Image, Bitmap, etc. classes. Suppose, I don't want to use those classes.
If I want to manually read/write a PNG image as a binary file to work with pixels then how can I do that?
using(FileStream fr = new FileStream(fileName, FileMode.Open))
{
using (BinaryReader br = new BinaryReader(fr))
{
imagesBytes= br.ReadBytes((int)fr.Length);
}
}
How can I get hold of individual pixels to manipulate them?