| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | blur(int[]
the source pixels srcPixels, int[] the destination pixels dstPixels, int the width of the source picture width, int the height of the source picture height, float[] the kernel of the blur effect kernel, int the radius of the blur effect radius)Blurs the source pixels into the destination pixels. |
| pack-priv static void | blur(byte[]
the source pixels srcPixels, byte[] the destination pixels dstPixels, int the width of the source picture width, int the height of the source picture height, float[] the kernel of the blur effect kernel, int the radius of the blur effect radius)Blurs the source pixels into the destination pixels. |
| pack-priv static void | |
| public static BufferedImage | Returns: a newBufferedImage, compatible with the color model
of imagethe reference image from which the color model of the new
image is obtained image)Returns a new |
| public static BufferedImage | Returns: a new translucent compatibleBufferedImage of the
specified width and heightthe width of the new image width, int the height of the new image height)Returns a new translucent compatible image of the specified width and height. |
| pack-priv static float[] | |
| pack-priv static BufferedImage | Returns: The blurred imageThe image tp src, BufferedImage The destination image to draw blurred src image into, null if you want a new one created dst, int The blur kernel radius radius)Apply Gaussian Blur to Image |
| private static GraphicsConfiguration | |
| pack-priv static byte[] | Returns: pixels if non-null, a new array of integers otherwisethe source image img, int the x location at which to start grabbing pixels x, int the y location at which to start grabbing pixels y, int the width of the rectangle of pixels to grab w, int the height of the rectangle of pixels to grab h, byte[] a pre-allocated array of pixels of size w*h; can be null pixels)Returns an array of pixels, stored as integers, from a |
| public static int[] | Returns: pixels if non-null, a new array of integers
otherwisethe source image img, int the x location at which to start grabbing pixels x, int the y location at which to start grabbing pixels y, int the width of the rectangle of pixels to grab w, int the height of the rectangle of pixels to grab h, int[] a pre-allocated array of pixels of size w*h; can be null pixels)Returns an array of pixels, stored as integers, from a
|
| private static boolean | |
| pack-priv static void | setPixels(BufferedImage
the destination image img, int the x location at which to start storing pixels x, int the y location at which to start storing pixels y, int the width of the rectangle of pixels to store w, int the height of the rectangle of pixels to store h, byte[] an array of pixels, stored as integers pixels)Writes a rectangular area of pixels in the destination |
| public static void | setPixels(BufferedImage
the destination image img, int the x location at which to start storing pixels x, int the y location at which to start storing pixels y, int the width of the rectangle of pixels to store w, int the height of the rectangle of pixels to store h, int[] an array of pixels, stored as integers pixels)Writes a rectangular area of pixels in the destination
|
| EffectUtils | back to summary |
|---|---|
| pack-priv EffectUtils() | |
| blur | back to summary |
|---|---|
| private static void blur(int[] srcPixels, int[] 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 INT_ARGB format. After this method is executed, dstPixels contains a transposed and filtered copy of srcPixels.
| |
| blur | back to summary |
|---|---|
| pack-priv 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.
| |
| clearImage | back to summary |
|---|---|
| pack-priv static void clearImage(BufferedImage img) Clear a transparent image to 100% transparent
| |
| createColorModelCompatibleImage | back to summary |
|---|---|
| public static BufferedImage createColorModelCompatibleImage(BufferedImage image) Returns a new
| |
| createCompatibleTranslucentImage | back to summary |
|---|---|
| public static BufferedImage createCompatibleTranslucentImage(int width, int height) Returns a new translucent compatible image of the specified width and
height. That is, the returned
| |
| createGaussianKernel | back to summary |
|---|---|
| pack-priv static float[] createGaussianKernel(int radius) | |
| gaussianBlur | back to summary |
|---|---|
| pack-priv static BufferedImage gaussianBlur(BufferedImage src, BufferedImage dst, int radius) Apply Gaussian Blur to Image
| |
| getGraphicsConfiguration | back to summary |
|---|---|
| private static GraphicsConfiguration getGraphicsConfiguration() | |
| getPixels | back to summary |
|---|---|
| pack-priv 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
| |
| getPixels | back to summary |
|---|---|
| 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
| |
| isHeadless | back to summary |
|---|---|
| private static boolean isHeadless() | |
| setPixels | back to summary |
|---|---|
| pack-priv static void setPixels(BufferedImage img, int x, int y, int w, int h, byte[] pixels) Writes a rectangular area of pixels in the destination
| |
| setPixels | back to summary |
|---|---|
| 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
| |