BBFunc
Inheritance: java.lang.Object
public class BBFunc
Constructors
Constructor | Description |
---|---|
BBFunc() |
Methods
BBFunc()
public BBFunc()
calcSeparatrix(ByteBitmap bitmap)
public static byte calcSeparatrix(ByteBitmap bitmap)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, RectangleVertexes vertexes)
public static byte calcSeparatrix(ByteBitmap bitmap, RectangleVertexes vertexes)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
vertexes | RectangleVertexes |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, System.Drawing.Point pointStart, System.Drawing.Point pointEnd)
public static byte calcSeparatrix(ByteBitmap bitmap, System.Drawing.Point pointStart, System.Drawing.Point pointEnd)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
pointStart | com.aspose.ms.System.Drawing.Point | |
pointEnd | com.aspose.ms.System.Drawing.Point |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, System.Drawing.Point startPoint, int endX, int endY)
public static byte calcSeparatrix(ByteBitmap bitmap, System.Drawing.Point startPoint, int endX, int endY)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | |
endX | int | |
endY | int |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, System.Drawing.Rectangle rectangle)
public static byte calcSeparatrix(ByteBitmap bitmap, System.Drawing.Rectangle rectangle)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
rectangle | com.aspose.ms.System.Drawing.Rectangle |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, int startX, int startY, System.Drawing.Point endPoint)
public static byte calcSeparatrix(ByteBitmap bitmap, int startX, int startY, System.Drawing.Point endPoint)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startX | int | |
startY | int | |
endPoint | com.aspose.ms.System.Drawing.Point |
Returns: byte
calcSeparatrix(ByteBitmap bitmap, int startX, int startY, int endX, int endY)
public static byte calcSeparatrix(ByteBitmap bitmap, int startX, int startY, int endX, int endY)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startX | int | |
startY | int | |
endX | int | |
endY | int |
Returns: byte
calculateBlackPercent(ByteBitmap bitmap, List<System.Drawing.Point> line, byte separatrix)
public static float calculateBlackPercent(ByteBitmap bitmap, List<System.Drawing.Point> line, byte separatrix)
Claculates a black percent in the line(list of points).
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
line | java.util.List<com.aspose.ms.System.Drawing.Point> | A list of points |
separatrix | byte | A separatrix |
Returns: float - Percent of black points. Float from 0 to 1
calculateBlackPercent(ByteBitmap bitmap, List<System.Drawing.Point> line, int offsetCount, boolean flip, int sign, int separatrix)
public static float calculateBlackPercent(ByteBitmap bitmap, List<System.Drawing.Point> line, int offsetCount, boolean flip, int sign, int separatrix)
Calculate black percent at the expected offset zone. If flip is true, consider line vertical (and add offset horizontal)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
line | java.util.List<com.aspose.ms.System.Drawing.Point> | A line |
offsetCount | int | Offset count |
flip | boolean | true - vertical line, false - horizontal line |
sign | int | Direction to offset |
separatrix | int | A separatrix |
Returns: float - Black percent
contains(ByteBitmap bitmap, System.Drawing.Point p)
public static boolean contains(ByteBitmap bitmap, System.Drawing.Point p)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
p | com.aspose.ms.System.Drawing.Point |
Returns: boolean
contains(ByteBitmap bitmap, int x, int y)
public static boolean contains(ByteBitmap bitmap, int x, int y)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
x | int | |
y | int |
Returns: boolean
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getAllPoints(ByteBitmap bitmap, System.Drawing.Point start, System.Drawing.Point end)
public static List<System.Drawing.Point> getAllPoints(ByteBitmap bitmap, System.Drawing.Point start, System.Drawing.Point end)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
start | com.aspose.ms.System.Drawing.Point | |
end | com.aspose.ms.System.Drawing.Point |
Returns: List
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getContrast(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
public static byte[] getContrast(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | |
endPoint | com.aspose.ms.System.Drawing.Point |
Returns: byte[]
getPixelFlip(ByteBitmap bitmap, int x, int y, boolean flip)
public static byte getPixelFlip(ByteBitmap bitmap, int x, int y, boolean flip)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
x | int | |
y | int | |
flip | boolean |
Returns: byte
getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
public static Int32List getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | |
endPoint | com.aspose.ms.System.Drawing.Point |
Returns: Int32List
getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint, int separatrix)
public static Int32List getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint, int separatrix)
Get zebra between start and end points using Bresenham line algorithm
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | Start point |
endPoint | com.aspose.ms.System.Drawing.Point | End point |
separatrix | int | A separatrix |
Returns: Int32List - A zebra
getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, int endX, int endY)
public static Int32List getZebra(ByteBitmap bitmap, System.Drawing.Point startPoint, int endX, int endY)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | |
endX | int | |
endY | int |
Returns: Int32List
getZebra(ByteBitmap bitmap, int startX, int startY, System.Drawing.Point endPoint)
public static Int32List getZebra(ByteBitmap bitmap, int startX, int startY, System.Drawing.Point endPoint)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startX | int | |
startY | int | |
endPoint | com.aspose.ms.System.Drawing.Point |
Returns: Int32List
getZebra(ByteBitmap bitmap, int startX, int startY, int endX, int endY)
public static Int32List getZebra(ByteBitmap bitmap, int startX, int startY, int endX, int endY)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startX | int | |
startY | int | |
endX | int | |
endY | int |
Returns: Int32List
getZebraWithRemove1pxNoise(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
public static Int32List getZebraWithRemove1pxNoise(ByteBitmap bitmap, System.Drawing.Point startPoint, System.Drawing.Point endPoint)
Get Zebra from bitmap between startPoint and endPoint with removing little noise.
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
startPoint | com.aspose.ms.System.Drawing.Point | The start point for zebra. |
endPoint | com.aspose.ms.System.Drawing.Point | The end point for zebra. |
Returns: Int32List - The zebra.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
pointValidation(ByteBitmap bitmap, System.Drawing.Point a)
public static System.Drawing.Point pointValidation(ByteBitmap bitmap, System.Drawing.Point a)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
a | com.aspose.ms.System.Drawing.Point |
Returns: com.aspose.ms.System.Drawing.Point
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |
widthOrHeight(ByteBitmap bitmap, boolean flip)
public static int widthOrHeight(ByteBitmap bitmap, boolean flip)
Size of bitmap (Width or Height)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
flip | boolean | false is width; true is height |
Returns: int -