Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
javax.swing.plaf.nimbus
class: EffectUtils [javadoc | source]
java.lang.Object
   javax.swing.plaf.nimbus.EffectUtils
EffectUtils
Method from javax.swing.plaf.nimbus.EffectUtils Summary:
blur,   clearImage,   createColorModelCompatibleImage,   createCompatibleTranslucentImage,   createGaussianKernel,   gaussianBlur,   getPixels,   getPixels,   setPixels,   setPixels
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.nimbus.EffectUtils Detail:
 static  void blur(byte[] srcPixels,
    byte[] dstPixels,
    int width,
    int height,
    float[] kernel,
    int radius) 

    Blurs the source pixels into the destination pixels. The force of the blur is specified by the radius which must be greater than 0.

    The source and destination pixels arrays are expected to be in the BYTE_GREY format.

    After this method is executed, dstPixels contains a transposed and filtered copy of srcPixels.

 static  void clearImage(BufferedImage img) 
    Clear a transparent image to 100% transparent
 public static BufferedImage createColorModelCompatibleImage(BufferedImage image) 

    Returns a new BufferedImage using the same color model as the image passed as a parameter. The returned image is only compatible with the image passed as a parameter. This does not mean the returned image is compatible with the hardware.

 public static BufferedImage createCompatibleTranslucentImage(int width,
    int height) 

    Returns a new translucent compatible image of the specified width and height. That is, the returned BufferedImage is compatible with the graphics hardware. If the method is called in a headless environment, then the returned BufferedImage will be compatible with the source image.

 static float[] createGaussianKernel(int radius) 
 static BufferedImage gaussianBlur(BufferedImage src,
    BufferedImage dst,
    int radius) 
    Apply Gaussian Blur to Image
 static byte[] getPixels(BufferedImage img,
    int x,
    int y,
    int w,
    int h,
    byte[] pixels) 

    Returns an array of pixels, stored as integers, from a BufferedImage. The pixels are grabbed from a rectangular area defined by a location and two dimensions. Calling this method on an image of type different from BufferedImage.TYPE_INT_ARGB and BufferedImage.TYPE_INT_RGB will unmanage the image.

 public static int[] getPixels(BufferedImage img,
    int x,
    int y,
    int w,
    int h,
    int[] pixels) 

    Returns an array of pixels, stored as integers, from a BufferedImage. The pixels are grabbed from a rectangular area defined by a location and two dimensions. Calling this method on an image of type different from BufferedImage.TYPE_INT_ARGB and BufferedImage.TYPE_INT_RGB will unmanage the image.

 static  void setPixels(BufferedImage img,
    int x,
    int y,
    int w,
    int h,
    byte[] pixels) 

    Writes a rectangular area of pixels in the destination BufferedImage. Calling this method on an image of type different from BufferedImage.TYPE_INT_ARGB and BufferedImage.TYPE_INT_RGB will unmanage the image.

 public static  void setPixels(BufferedImage img,
    int x,
    int y,
    int w,
    int h,
    int[] pixels) 

    Writes a rectangular area of pixels in the destination BufferedImage. Calling this method on an image of type different from BufferedImage.TYPE_INT_ARGB and BufferedImage.TYPE_INT_RGB will unmanage the image.