I am doing an OCR project. I must to get an image from input in inkcanvas to process in the next step, i.e. translate this image to an two-dimension array.
I am confused about that how to get a bitmap image from inkcanvas to process. I have been searching for a solution from many sources but a lot of them just save the inkcanvas to file-stream.
please help me! thanks so much
Check this blog post: http://www.centrolutions.com/Blog/post/2008/12/09/Convert-WPF-InkCanvas-to-Bitmap.aspx
That gets you a byte array for the bitmap, since you're doing OCR that should be enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With