Yes this is a .NET project but the C++ code source is the same for GdiPlus API. You can understand how to use LockBit.
Remi On Feb 4, 12:58 pm, Jessica <[email protected]> wrote: > Thank you very much for your answer rthomas. > > I don't know at all .NET in fact. > My project is a traditionnal c++ project (windows application). I'd > like to use the .net assembly in this project. > Is it possible? > > In the link you gave me , apparently you need to use the tessnet2 in > a .net project. Is it possible to easily switch from a c++ project to > a .net project? What are the differences? > > Thanks! > > On 4 fév, 12:07, rthomas <[email protected]> wrote: > > > > > Hi, > > > Look tessnet2 source code, It's done with > > Gdi+.http://www.pixel-technology.com/freeware/tessnet2/src.zip > > > Rémi > > > On Feb 4, 10:22 am, Jessica <[email protected]> wrote: > > > > Hi, > > > > I have a big problem. > > > I want to ocr screenshots. > > > > I am under windows vista, using c++, gdi+ > > > > I have a Gdiplus::Bitmap, I need to convert it to an unsigned char * > > > to put it in TessDLLAPI (I'm using tessdll.dll) > > > > I used the function LockBits to get a BitmapData and then scan0 to get > > > an unsigned char * > > > But this does not work! > > > > I don't know how to format it. > > > Could someone help me please? > > > > Thank you!- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en -~----------~----~----~----~------~----~------~--~---

