Code
How to solve the this problemCode
Code
Bitmap nb = new Bitmap(bp);Code
// create filterCode
CannyEdgeDetector filter = new CannyEdgeDetector();Code
filter.ApplyInPlace(nb);Code
pictureBox2.Image = nb;Code
Source pixel format is not supported by the filter.

Bikesh SrivastavaRank #108 · 20.3K reputationPosted Aug 26, 2016, 1:17 AM EDT
Nilesh JadavRank #109 · 20.3K reputationPosted Aug 25, 2016, 11:27 PM EDT
1) http://www.codeproject.com/Questions/1043312/Source-pixel-format-is-not-supported-by-the-filter
2) http://stackoverflow.com/questions/26967657/unsupported-pixel-format-of-source-or-template-image-aforge-imaging
Hope that helps !