-
public class InPlaceRoundFilterModified midpoint circle algorithm. Clients that look for better performances should use the native implementation of this algorithm in NativeRoundingFilter.
-
-
Field Summary
Fields Modifier and Type Field Description public final static InPlaceRoundFilterINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitroundBitmapInPlace(Bitmap bitmap)An implementation for rounding a given bitmap to a circular shape. -
-
Method Detail
-
roundBitmapInPlace
final static Unit roundBitmapInPlace(Bitmap bitmap)
An implementation for rounding a given bitmap to a circular shape. The underlying implementation uses a modified midpoint circle algorithm but instead of drawing a circle, it clears all pixels starting from the circle all the way to the bitmap edges.
- Parameters:
bitmap- The input Bitmap
-
-
-
-