Hi everyone, I'm new to the Magick.Net. I tried to change the color of each pixel in the image but there's no change in the new image. Here's my code. Could anyone tell me what's going on? Thanks a lot.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ImageMagick;
namespace MagickTutor
{
class Program
{
static void Main(string[] args)
{
MagickImage image = new MagickImage();
image.Read("C:\\.....\\test1.png");
foreach (Pixel p in image.GetWritablePixels()) {
p.SetChannel(0, 65535);
}
image.Write("C:\\.....\\test2.png");
}
}
}