ilOliveira / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
1 stars 0 forks source link

Add expansion flag to Rotate.rotate() #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Convert Bitmap in to Pix Object
2. Rotate pix with Leptonica using this function from api : 
Rotate.rotate(Pix pixs, float degrees, boolean quality)
I am calling it this way : 
Pix temp = Rotate.rotate(pix, 90f, true);

What is the expected output? What do you see instead?
I am expecting rotated Image , but just a content of the Image is rotated.The 
Image self has old Dimension (I add images, you can see it)
Do I am using wrong this function or this is api issue?
Any help is very welcome.
What version of the product are you using? On what operating system?
tess-two on ubuntu 10.04

Please provide any additional information below.
I am writing with same Problem here : 
http://stackoverflow.com/questions/9376490/rotate-laptonica-pix

Original issue reported on code.google.com by doomdeve...@gmail.com on 22 Feb 2012 at 1:55

Attachments:

GoogleCodeExporter commented 8 years ago
The Java version of the rotate() method should provide a flag for expansion of 
the destination image, which should be tested in RotateTest.

Filing another bug re: corruption in the output image.

Original comment by alanv@google.com on 11 Sep 2012 at 8:52

GoogleCodeExporter commented 8 years ago

Original comment by alanv@google.com on 14 Sep 2012 at 6:34