c# - How to process each pixel of the image use Magick.NET maximally quickly? -


i use lib magick.net fot access image file. need precess each pixel on image:

        magickimage img = new magickimage(@"d:\test\110706m01000509.jpg");         pixelcollection pc = img.getreadonlypixels(0, 0, img.width, img.height);          (int x = 0; x < pc.width; x++)             for(int y = 0; y < pc.height; y++)             {                 byte[] color = pc.getvalue(x,y);                  //some actions             } 

but, access color of pixels of image(12000 x 16000) takes more 5 minutes... how more process pixels of image use lib magick.net?


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -