|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcoderecognition.imaging.RotationAdjustmentFilter
public final class RotationAdjustmentFilter
Helper class to adjust the rotation angle.
Adjusting the rotation angle[C#] using (Bitmap bmp = new Bitmap(file)) { RotationAdjustmentFilter rh = new RotationAdjustmentFilter(); BarCodeReader r = new BarCodeReader(rh.Apply(bmp),BarCodeReadType.QR); if(r.Read()) { Console.Out.WriteLine(r.GetCodeText()); } }
Constructor Summary | |
---|---|
RotationAdjustmentFilter()
Initializes a new instance of the RotationAdjustmentFilter class. |
|
RotationAdjustmentFilter(int threshold)
Initializes a new instance of the RotationAdjustmentFilter class. |
Method Summary | |
---|---|
BufferedImage |
apply(BufferedImage image)
Adjusts the bitmap. |
BufferedImage |
apply(BufferedImage image,
Rectangle area)
|
double |
detectAngle(BufferedImage image)
Detects the angle. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RotationAdjustmentFilter()
Initializes a new instance of the RotationAdjustmentFilter
class.
public RotationAdjustmentFilter(int threshold)
Initializes a new instance of the RotationAdjustmentFilter
class.
threshold
- The threshold.It should be a positive int and less than 255.Method Detail |
---|
public double detectAngle(BufferedImage image)
Detects the angle.
public BufferedImage apply(BufferedImage image)
Adjusts the bitmap.
apply
in interface IBitmapFilter
public BufferedImage apply(BufferedImage image, Rectangle area)
apply
in interface IBitmapFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |