Package 

Object InPlaceRoundFilter


  • 
    public class InPlaceRoundFilter
    
                        

    Modified midpoint circle algorithm. Clients that look for better performances should use the native implementation of this algorithm in NativeRoundingFilter.

    • Method Summary

      Modifier and Type Method Description
      final static Unit roundBitmapInPlace(Bitmap bitmap) An implementation for rounding a given bitmap to a circular shape.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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