class javax.swing.plaf.nimbus.EffectUtils
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.plaf.nimbus.EffectUtils
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // javax.swing.plaf.nimbus.EffectUtils this
0: .line 42
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // javax.swing.plaf.nimbus.EffectUtils this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/nimbus/EffectUtils;
static void clearImage(java.awt.image.BufferedImage);
descriptor: (Ljava/awt/image/BufferedImage;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 // java.awt.image.BufferedImage img
0: .line 50
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 1 /* g2 */
start local 1 // java.awt.Graphics2D g2
1: .line 51
aload 1 /* g2 */
getstatic java.awt.AlphaComposite.Clear:Ljava/awt/AlphaComposite;
invokevirtual java.awt.Graphics2D.setComposite:(Ljava/awt/Composite;)V
2: .line 52
aload 1 /* g2 */
iconst_0
iconst_0
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getWidth:()I
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getHeight:()I
invokevirtual java.awt.Graphics2D.fillRect:(IIII)V
3: .line 53
aload 1 /* g2 */
invokevirtual java.awt.Graphics2D.dispose:()V
4: .line 54
return
end local 1 // java.awt.Graphics2D g2
end local 0 // java.awt.image.BufferedImage img
LocalVariableTable:
Start End Slot Name Signature
0 5 0 img Ljava/awt/image/BufferedImage;
1 5 1 g2 Ljava/awt/Graphics2D;
MethodParameters:
Name Flags
img
static java.awt.image.BufferedImage gaussianBlur(java.awt.image.BufferedImage, java.awt.image.BufferedImage, int);
descriptor: (Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;I)Ljava/awt/image/BufferedImage;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=8, args_size=3
start local 0 // java.awt.image.BufferedImage src
start local 1 // java.awt.image.BufferedImage dst
start local 2 // int radius
0: .line 68
aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getWidth:()I
istore 3 /* width */
start local 3 // int width
1: .line 69
aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getHeight:()I
istore 4 /* height */
start local 4 // int height
2: .line 70
aload 1 /* dst */
ifnull 3
aload 1 /* dst */
invokevirtual java.awt.image.BufferedImage.getWidth:()I
iload 3 /* width */
if_icmpne 3
aload 1 /* dst */
invokevirtual java.awt.image.BufferedImage.getHeight:()I
iload 4 /* height */
if_icmpne 3
aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getType:()I
aload 1 /* dst */
invokevirtual java.awt.image.BufferedImage.getType:()I
if_icmpeq 4
3: .line 71
StackMap locals: int int
StackMap stack:
aload 0 /* src */
invokestatic javax.swing.plaf.nimbus.EffectUtils.createColorModelCompatibleImage:(Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
astore 1 /* dst */
4: .line 73
StackMap locals:
StackMap stack:
iload 2 /* radius */
invokestatic javax.swing.plaf.nimbus.EffectUtils.createGaussianKernel:(I)[F
astore 5 /* kernel */
start local 5 // float[] kernel
5: .line 74
aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getType:()I
iconst_2
if_icmpne 13
6: .line 75
iload 3 /* width */
iload 4 /* height */
imul
newarray 10
astore 6 /* srcPixels */
start local 6 // int[] srcPixels
7: .line 76
iload 3 /* width */
iload 4 /* height */
imul
newarray 10
astore 7 /* dstPixels */
start local 7 // int[] dstPixels
8: .line 77
aload 0 /* src */
iconst_0
iconst_0
iload 3 /* width */
iload 4 /* height */
aload 6 /* srcPixels */
invokestatic javax.swing.plaf.nimbus.EffectUtils.getPixels:(Ljava/awt/image/BufferedImage;IIII[I)[I
pop
9: .line 79
aload 6 /* srcPixels */
aload 7 /* dstPixels */
iload 3 /* width */
iload 4 /* height */
aload 5 /* kernel */
iload 2 /* radius */
invokestatic javax.swing.plaf.nimbus.EffectUtils.blur:([I[III[FI)V
10: .line 82
aload 7 /* dstPixels */
aload 6 /* srcPixels */
iload 4 /* height */
iload 3 /* width */
aload 5 /* kernel */
iload 2 /* radius */
invokestatic javax.swing.plaf.nimbus.EffectUtils.blur:([I[III[FI)V
11: .line 84
aload 1 /* dst */
iconst_0
iconst_0
iload 3 /* width */
iload 4 /* height */
aload 6 /* srcPixels */
invokestatic javax.swing.plaf.nimbus.EffectUtils.setPixels:(Ljava/awt/image/BufferedImage;IIII[I)V
end local 7 // int[] dstPixels
end local 6 // int[] srcPixels
12: .line 85
goto 24
StackMap locals: float[]
StackMap stack:
13: aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getType:()I
bipush 10
if_icmpne 21
14: .line 86
iload 3 /* width */
iload 4 /* height */
imul
newarray 8
astore 6 /* srcPixels */
start local 6 // byte[] srcPixels
15: .line 87
iload 3 /* width */
iload 4 /* height */
imul
newarray 8
astore 7 /* dstPixels */
start local 7 // byte[] dstPixels
16: .line 88
aload 0 /* src */
iconst_0
iconst_0
iload 3 /* width */
iload 4 /* height */
aload 6 /* srcPixels */
invokestatic javax.swing.plaf.nimbus.EffectUtils.getPixels:(Ljava/awt/image/BufferedImage;IIII[B)[B
pop
17: .line 90
aload 6 /* srcPixels */
aload 7 /* dstPixels */
iload 3 /* width */
iload 4 /* height */
aload 5 /* kernel */
iload 2 /* radius */
invokestatic javax.swing.plaf.nimbus.EffectUtils.blur:([B[BII[FI)V
18: .line 93
aload 7 /* dstPixels */
aload 6 /* srcPixels */
iload 4 /* height */
iload 3 /* width */
aload 5 /* kernel */
iload 2 /* radius */
invokestatic javax.swing.plaf.nimbus.EffectUtils.blur:([B[BII[FI)V
19: .line 95
aload 1 /* dst */
iconst_0
iconst_0
iload 3 /* width */
iload 4 /* height */
aload 6 /* srcPixels */
invokestatic javax.swing.plaf.nimbus.EffectUtils.setPixels:(Ljava/awt/image/BufferedImage;IIII[B)V
end local 7 // byte[] dstPixels
end local 6 // byte[] srcPixels
20: .line 96
goto 24
21: .line 97
StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "EffectUtils.gaussianBlur() src image is not a supported type, type=["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: .line 98
aload 0 /* src */
invokevirtual java.awt.image.BufferedImage.getType:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: .line 97
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
24: .line 100
StackMap locals:
StackMap stack:
aload 1 /* dst */
areturn
end local 5 // float[] kernel
end local 4 // int height
end local 3 // int width
end local 2 // int radius
end local 1 // java.awt.image.BufferedImage dst
end local 0 // java.awt.image.BufferedImage src
LocalVariableTable:
Start End Slot Name Signature
0 25 0 src Ljava/awt/image/BufferedImage;
0 25 1 dst Ljava/awt/image/BufferedImage;
0 25 2 radius I
1 25 3 width I
2 25 4 height I
5 25 5 kernel [F
7 12 6 srcPixels [I
8 12 7 dstPixels [I
15 20 6 srcPixels [B
16 20 7 dstPixels [B
MethodParameters:
Name Flags
src
dst
radius
private static void blur(int[], int[], int, int, float[], int);
descriptor: ([I[III[FI)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=22, args_size=6
start local 0 // int[] srcPixels
start local 1 // int[] dstPixels
start local 2 // int width
start local 3 // int height
start local 4 // float[] kernel
start local 5 // int radius
0: .line 129
iconst_0
istore 14 /* y */
start local 14 // int y
1: goto 44
2: .line 130
StackMap locals: int[] int[] int int float[] int top top top top top top top top int
StackMap stack:
iload 14 /* y */
istore 15 /* index */
start local 15 // int index
3: .line 131
iload 14 /* y */
iload 2 /* width */
imul
istore 16 /* offset */
start local 16 // int offset
4: .line 133
iconst_0
istore 17 /* x */
start local 17 // int x
5: goto 42
6: .line 134
StackMap locals: int int int
StackMap stack:
fconst_0
dup
fstore 9 /* b */
start local 9 // float b
7: dup
fstore 8 /* g */
start local 8 // float g
8: dup
fstore 7 /* r */
start local 7 // float r
9: fstore 6 /* a */
start local 6 // float a
10: .line 136
iload 5 /* radius */
ineg
istore 18 /* i */
start local 18 // int i
11: goto 22
12: .line 137
StackMap locals: int[] int[] int int float[] int float float float float top top top top int int int int int
StackMap stack:
iload 17 /* x */
iload 18 /* i */
iadd
istore 19 /* subOffset */
start local 19 // int subOffset
13: .line 138
iload 19 /* subOffset */
iflt 14
iload 19 /* subOffset */
iload 2 /* width */
if_icmplt 15
14: .line 139
StackMap locals: int
StackMap stack:
iload 17 /* x */
iload 2 /* width */
iadd
iload 2 /* width */
irem
istore 19 /* subOffset */
15: .line 142
StackMap locals:
StackMap stack:
aload 0 /* srcPixels */
iload 16 /* offset */
iload 19 /* subOffset */
iadd
iaload
istore 20 /* pixel */
start local 20 // int pixel
16: .line 143
aload 4 /* kernel */
iload 5 /* radius */
iload 18 /* i */
iadd
faload
fstore 21 /* blurFactor */
start local 21 // float blurFactor
17: .line 145
fload 6 /* a */
fload 21 /* blurFactor */
iload 20 /* pixel */
bipush 24
ishr
sipush 255
iand
i2f
fmul
fadd
fstore 6 /* a */
18: .line 146
fload 7 /* r */
fload 21 /* blurFactor */
iload 20 /* pixel */
bipush 16
ishr
sipush 255
iand
i2f
fmul
fadd
fstore 7 /* r */
19: .line 147
fload 8 /* g */
fload 21 /* blurFactor */
iload 20 /* pixel */
bipush 8
ishr
sipush 255
iand
i2f
fmul
fadd
fstore 8 /* g */
20: .line 148
fload 9 /* b */
fload 21 /* blurFactor */
iload 20 /* pixel */
sipush 255
iand
i2f
fmul
fadd
fstore 9 /* b */
end local 21 // float blurFactor
end local 20 // int pixel
end local 19 // int subOffset
21: .line 136
iinc 18 /* i */ 1
StackMap locals:
StackMap stack:
22: iload 18 /* i */
iload 5 /* radius */
if_icmple 12
end local 18 // int i
23: .line 151
fload 6 /* a */
ldc 0.5
fadd
f2i
istore 10 /* ca */
start local 10 // int ca
24: .line 152
fload 7 /* r */
ldc 0.5
fadd
f2i
istore 11 /* cr */
start local 11 // int cr
25: .line 153
fload 8 /* g */
ldc 0.5
fadd
f2i
istore 12 /* cg */
start local 12 // int cg
26: .line 154
fload 9 /* b */
ldc 0.5
fadd
f2i
istore 13 /* cb */
start local 13 // int cb
27: .line 156
aload 1 /* dstPixels */
iload 15 /* index */
iload 10 /* ca */
sipush 255
if_icmple 28
sipush 255
goto 29
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int
28: iload 10 /* ca */
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int
29: bipush 24
ishl
30: .line 157
iload 11 /* cr */
sipush 255
if_icmple 31
sipush 255
goto 32
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int
31: iload 11 /* cr */
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int int
32: bipush 16
ishl
ior
33: .line 158
iload 12 /* cg */
sipush 255
if_icmple 34
sipush 255
goto 35
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int
34: iload 12 /* cg */
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int int
35: bipush 8
ishl
ior
36: .line 159
iload 13 /* cb */
sipush 255
if_icmple 37
sipush 255
goto 38
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int
37: iload 13 /* cb */
StackMap locals: int[] int[] int int float[] int float float float float int int int int int int int int
StackMap stack: int[] int int int
38: ior
39: .line 156
iastore
40: .line 160
iload 15 /* index */
iload 3 /* height */
iadd
istore 15 /* index */
41: .line 133
iinc 17 /* x */ 1
end local 13 // int cb
end local 12 // int cg
end local 11 // int cr
end local 10 // int ca
end local 9 // float b
end local 8 // float g
end local 7 // float r
end local 6 // float a
StackMap locals: int[] int[] int int float[] int top top top top top top top top int int int int
StackMap stack:
42: iload 17 /* x */
iload 2 /* width */
if_icmplt 6
end local 17 // int x
end local 16 // int offset
end local 15 // int index
43: .line 129
iinc 14 /* y */ 1
StackMap locals:
StackMap stack:
44: iload 14 /* y */
iload 3 /* height */
if_icmplt 2
end local 14 // int y
45: .line 163
return
end local 5 // int radius
end local 4 // float[] kernel
end local 3 // int height
end local 2 // int width
end local 1 // int[] dstPixels
end local 0 // int[] srcPixels
LocalVariableTable:
Start End Slot Name Signature
0 46 0 srcPixels [I
0 46 1 dstPixels [I
0 46 2 width I
0 46 3 height I
0 46 4 kernel [F
0 46 5 radius I
10 42 6 a F
9 42 7 r F
8 42 8 g F
7 42 9 b F
24 42 10 ca I
25 42 11 cr I
26 42 12 cg I
27 42 13 cb I
1 45 14 y I
3 43 15 index I
4 43 16 offset I
5 43 17 x I
11 23 18 i I
13 21 19 subOffset I
16 21 20 pixel I
17 21 21 blurFactor F
MethodParameters:
Name Flags
srcPixels
dstPixels
width
height
kernel
radius
static void blur(byte[], byte[], int, int, float[], int);
descriptor: ([B[BII[FI)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=16, args_size=6
start local 0 // byte[] srcPixels
start local 1 // byte[] dstPixels
start local 2 // int width
start local 3 // int height
start local 4 // float[] kernel
start local 5 // int radius
0: .line 183
iconst_0
istore 8 /* y */
start local 8 // int y
1: goto 25
2: .line 184
StackMap locals: byte[] byte[] int int float[] int top top int
StackMap stack:
iload 8 /* y */
istore 9 /* index */
start local 9 // int index
3: .line 185
iload 8 /* y */
iload 2 /* width */
imul
istore 10 /* offset */
start local 10 // int offset
4: .line 186
iconst_0
istore 11 /* x */
start local 11 // int x
5: goto 23
6: .line 187
StackMap locals: int int int
StackMap stack:
fconst_0
fstore 6 /* p */
start local 6 // float p
7: .line 188
iload 5 /* radius */
ineg
istore 12 /* i */
start local 12 // int i
8: goto 16
9: .line 189
StackMap locals: byte[] byte[] int int float[] int float top int int int int int
StackMap stack:
iload 11 /* x */
iload 12 /* i */
iadd
istore 13 /* subOffset */
start local 13 // int subOffset
10: .line 192
iload 13 /* subOffset */
iflt 11
iload 13 /* subOffset */
iload 2 /* width */
if_icmplt 12
11: .line 193
StackMap locals: int
StackMap stack:
iload 11 /* x */
iload 2 /* width */
iadd
iload 2 /* width */
irem
istore 13 /* subOffset */
12: .line 195
StackMap locals:
StackMap stack:
aload 0 /* srcPixels */
iload 10 /* offset */
iload 13 /* subOffset */
iadd
baload
sipush 255
iand
istore 14 /* pixel */
start local 14 // int pixel
13: .line 196
aload 4 /* kernel */
iload 5 /* radius */
iload 12 /* i */
iadd
faload
fstore 15 /* blurFactor */
start local 15 // float blurFactor
14: .line 197
fload 6 /* p */
fload 15 /* blurFactor */
iload 14 /* pixel */
i2f
fmul
fadd
fstore 6 /* p */
end local 15 // float blurFactor
end local 14 // int pixel
end local 13 // int subOffset
15: .line 188
iinc 12 /* i */ 1
StackMap locals:
StackMap stack:
16: iload 12 /* i */
iload 5 /* radius */
if_icmple 9
end local 12 // int i
17: .line 199
fload 6 /* p */
ldc 0.5
fadd
f2i
istore 7 /* cp */
start local 7 // int cp
18: .line 200
aload 1 /* dstPixels */
iload 9 /* index */
iload 7 /* cp */
sipush 255
if_icmple 19
sipush 255
goto 20
StackMap locals: byte[] byte[] int int float[] int float int int int int int
StackMap stack: byte[] int
19: iload 7 /* cp */
StackMap locals: byte[] byte[] int int float[] int float int int int int int
StackMap stack: byte[] int int
20: i2b
bastore
21: .line 201
iload 9 /* index */
iload 3 /* height */
iadd
istore 9 /* index */
22: .line 186
iinc 11 /* x */ 1
end local 7 // int cp
end local 6 // float p
StackMap locals: byte[] byte[] int int float[] int top top int int int int
StackMap stack:
23: iload 11 /* x */
iload 2 /* width */
if_icmplt 6
end local 11 // int x
end local 10 // int offset
end local 9 // int index
24: .line 183
iinc 8 /* y */ 1
StackMap locals:
StackMap stack:
25: iload 8 /* y */
iload 3 /* height */
if_icmplt 2
end local 8 // int y
26: .line 204
return
end local 5 // int radius
end local 4 // float[] kernel
end local 3 // int height
end local 2 // int width
end local 1 // byte[] dstPixels
end local 0 // byte[] srcPixels
LocalVariableTable:
Start End Slot Name Signature
0 27 0 srcPixels [B
0 27 1 dstPixels [B
0 27 2 width I
0 27 3 height I
0 27 4 kernel [F
0 27 5 radius I
7 23 6 p F
18 23 7 cp I
1 26 8 y I
3 24 9 index I
4 24 10 offset I
5 24 11 x I
8 17 12 i I
10 15 13 subOffset I
13 15 14 pixel I
14 15 15 blurFactor F
MethodParameters:
Name Flags
srcPixels
dstPixels
width
height
kernel
radius
static float[] createGaussianKernel(int);
descriptor: (I)[F
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=9, args_size=1
start local 0 // int radius
0: .line 207
iload 0 /* radius */
iconst_1
if_icmpge 2
1: .line 208
new java.lang.IllegalArgumentException
dup
ldc "Radius must be >= 1"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: .line 211
StackMap locals:
StackMap stack:
iload 0 /* radius */
iconst_2
imul
iconst_1
iadd
newarray 6
astore 1 /* data */
start local 1 // float[] data
3: .line 213
iload 0 /* radius */
i2f
ldc 3.0
fdiv
fstore 2 /* sigma */
start local 2 // float sigma
4: .line 214
fconst_2
fload 2 /* sigma */
fmul
fload 2 /* sigma */
fmul
fstore 3 /* twoSigmaSquare */
start local 3 // float twoSigmaSquare
5: .line 215
fload 3 /* twoSigmaSquare */
f2d
ldc 3.141592653589793
dmul
invokestatic java.lang.Math.sqrt:(D)D
d2f
fstore 4 /* sigmaRoot */
start local 4 // float sigmaRoot
6: .line 216
fconst_0
fstore 5 /* total */
start local 5 // float total
7: .line 218
iload 0 /* radius */
ineg
istore 6 /* i */
start local 6 // int i
8: goto 14
9: .line 219
StackMap locals: int float[] float float float float int
StackMap stack:
iload 6 /* i */
iload 6 /* i */
imul
i2f
fstore 7 /* distance */
start local 7 // float distance
10: .line 220
iload 6 /* i */
iload 0 /* radius */
iadd
istore 8 /* index */
start local 8 // int index
11: .line 221
aload 1 /* data */
iload 8 /* index */
fload 7 /* distance */
fneg
fload 3 /* twoSigmaSquare */
fdiv
f2d
invokestatic java.lang.Math.exp:(D)D
d2f
fload 4 /* sigmaRoot */
fdiv
fastore
12: .line 222
fload 5 /* total */
aload 1 /* data */
iload 8 /* index */
faload
fadd
fstore 5 /* total */
end local 8 // int index
end local 7 // float distance
13: .line 218
iinc 6 /* i */ 1
StackMap locals:
StackMap stack:
14: iload 6 /* i */
iload 0 /* radius */
if_icmple 9
end local 6 // int i
15: .line 225
iconst_0
istore 6 /* i */
start local 6 // int i
16: goto 19
17: .line 226
StackMap locals:
StackMap stack:
aload 1 /* data */
iload 6 /* i */
dup2
faload
fload 5 /* total */
fdiv
fastore
18: .line 225
iinc 6 /* i */ 1
StackMap locals:
StackMap stack:
19: iload 6 /* i */
aload 1 /* data */
arraylength
if_icmplt 17
end local 6 // int i
20: .line 229
aload 1 /* data */
areturn
end local 5 // float total
end local 4 // float sigmaRoot
end local 3 // float twoSigmaSquare
end local 2 // float sigma
end local 1 // float[] data
end local 0 // int radius
LocalVariableTable:
Start End Slot Name Signature
0 21 0 radius I
3 21 1 data [F
4 21 2 sigma F
5 21 3 twoSigmaSquare F
6 21 4 sigmaRoot F
7 21 5 total F
8 15 6 i I
10 13 7 distance F
11 13 8 index I
16 20 6 i I
MethodParameters:
Name Flags
radius
static byte[] getPixels(java.awt.image.BufferedImage, int, int, int, int, byte[]);
descriptor: (Ljava/awt/image/BufferedImage;IIII[B)[B
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=8, args_size=6
start local 0 // java.awt.image.BufferedImage img
start local 1 // int x
start local 2 // int y
start local 3 // int w
start local 4 // int h
start local 5 // byte[] pixels
0: .line 252
iload 3 /* w */
ifeq 1
iload 4 /* h */
ifne 2
1: .line 253
StackMap locals:
StackMap stack:
iconst_0
newarray 8
areturn
2: .line 256
StackMap locals:
StackMap stack:
aload 5 /* pixels */
ifnonnull 5
3: .line 257
iload 3 /* w */
iload 4 /* h */
imul
newarray 8
astore 5 /* pixels */
4: .line 258
goto 7
StackMap locals:
StackMap stack:
5: aload 5 /* pixels */
arraylength
iload 3 /* w */
iload 4 /* h */
imul
if_icmpge 7
6: .line 259
new java.lang.IllegalArgumentException
dup
ldc "pixels array must have a length >= w*h"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: .line 262
StackMap locals:
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getType:()I
istore 6 /* imageType */
start local 6 // int imageType
8: .line 263
iload 6 /* imageType */
bipush 10
if_icmpne 11
9: .line 264
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
astore 7 /* raster */
start local 7 // java.awt.image.Raster raster
10: .line 265
aload 7 /* raster */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
invokevirtual java.awt.image.Raster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
areturn
end local 7 // java.awt.image.Raster raster
11: .line 267
StackMap locals: int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Only type BYTE_GRAY is supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 6 // int imageType
end local 5 // byte[] pixels
end local 4 // int h
end local 3 // int w
end local 2 // int y
end local 1 // int x
end local 0 // java.awt.image.BufferedImage img
LocalVariableTable:
Start End Slot Name Signature
0 12 0 img Ljava/awt/image/BufferedImage;
0 12 1 x I
0 12 2 y I
0 12 3 w I
0 12 4 h I
0 12 5 pixels [B
8 12 6 imageType I
10 11 7 raster Ljava/awt/image/Raster;
MethodParameters:
Name Flags
img
x
y
w
h
pixels
static void setPixels(java.awt.image.BufferedImage, int, int, int, int, byte[]);
descriptor: (Ljava/awt/image/BufferedImage;IIII[B)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=8, args_size=6
start local 0 // java.awt.image.BufferedImage img
start local 1 // int x
start local 2 // int y
start local 3 // int w
start local 4 // int h
start local 5 // byte[] pixels
0: .line 286
aload 5 /* pixels */
ifnull 1
iload 3 /* w */
ifeq 1
iload 4 /* h */
ifne 2
1: .line 287
StackMap locals:
StackMap stack:
return
2: .line 288
StackMap locals:
StackMap stack:
aload 5 /* pixels */
arraylength
iload 3 /* w */
iload 4 /* h */
imul
if_icmpge 4
3: .line 289
new java.lang.IllegalArgumentException
dup
ldc "pixels array must have a length >= w*h"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: .line 291
StackMap locals:
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getType:()I
istore 6 /* imageType */
start local 6 // int imageType
5: .line 292
iload 6 /* imageType */
bipush 10
if_icmpne 9
6: .line 293
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
astore 7 /* raster */
start local 7 // java.awt.image.WritableRaster raster
7: .line 294
aload 7 /* raster */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
invokevirtual java.awt.image.WritableRaster.setDataElements:(IIIILjava/lang/Object;)V
end local 7 // java.awt.image.WritableRaster raster
8: .line 295
goto 10
9: .line 296
StackMap locals: int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Only type BYTE_GRAY is supported"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: .line 298
StackMap locals:
StackMap stack:
return
end local 6 // int imageType
end local 5 // byte[] pixels
end local 4 // int h
end local 3 // int w
end local 2 // int y
end local 1 // int x
end local 0 // java.awt.image.BufferedImage img
LocalVariableTable:
Start End Slot Name Signature
0 11 0 img Ljava/awt/image/BufferedImage;
0 11 1 x I
0 11 2 y I
0 11 3 w I
0 11 4 h I
0 11 5 pixels [B
5 11 6 imageType I
7 8 7 raster Ljava/awt/image/WritableRaster;
MethodParameters:
Name Flags
img
x
y
w
h
pixels
public static int[] getPixels(java.awt.image.BufferedImage, int, int, int, int, int[]);
descriptor: (Ljava/awt/image/BufferedImage;IIII[I)[I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=6
start local 0 // java.awt.image.BufferedImage img
start local 1 // int x
start local 2 // int y
start local 3 // int w
start local 4 // int h
start local 5 // int[] pixels
0: .line 320
iload 3 /* w */
ifeq 1
iload 4 /* h */
ifne 2
1: .line 321
StackMap locals:
StackMap stack:
iconst_0
newarray 10
areturn
2: .line 324
StackMap locals:
StackMap stack:
aload 5 /* pixels */
ifnonnull 5
3: .line 325
iload 3 /* w */
iload 4 /* h */
imul
newarray 10
astore 5 /* pixels */
4: .line 326
goto 7
StackMap locals:
StackMap stack:
5: aload 5 /* pixels */
arraylength
iload 3 /* w */
iload 4 /* h */
imul
if_icmpge 7
6: .line 327
new java.lang.IllegalArgumentException
dup
ldc "pixels array must have a length >= w*h"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: .line 331
StackMap locals:
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getType:()I
istore 6 /* imageType */
start local 6 // int imageType
8: .line 332
iload 6 /* imageType */
iconst_2
if_icmpeq 10
9: .line 333
iload 6 /* imageType */
iconst_1
if_icmpne 12
10: .line 334
StackMap locals: int
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
astore 7 /* raster */
start local 7 // java.awt.image.Raster raster
11: .line 335
aload 7 /* raster */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
invokevirtual java.awt.image.Raster.getDataElements:(IIIILjava/lang/Object;)Ljava/lang/Object;
checkcast int[]
areturn
end local 7 // java.awt.image.Raster raster
12: .line 339
StackMap locals:
StackMap stack:
aload 0 /* img */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
iconst_0
iload 3 /* w */
invokevirtual java.awt.image.BufferedImage.getRGB:(IIII[III)[I
areturn
end local 6 // int imageType
end local 5 // int[] pixels
end local 4 // int h
end local 3 // int w
end local 2 // int y
end local 1 // int x
end local 0 // java.awt.image.BufferedImage img
LocalVariableTable:
Start End Slot Name Signature
0 13 0 img Ljava/awt/image/BufferedImage;
0 13 1 x I
0 13 2 y I
0 13 3 w I
0 13 4 h I
0 13 5 pixels [I
8 13 6 imageType I
11 12 7 raster Ljava/awt/image/Raster;
MethodParameters:
Name Flags
img
x
y
w
h
pixels
public static void setPixels(java.awt.image.BufferedImage, int, int, int, int, int[]);
descriptor: (Ljava/awt/image/BufferedImage;IIII[I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=6
start local 0 // java.awt.image.BufferedImage img
start local 1 // int x
start local 2 // int y
start local 3 // int w
start local 4 // int h
start local 5 // int[] pixels
0: .line 359
aload 5 /* pixels */
ifnull 1
iload 3 /* w */
ifeq 1
iload 4 /* h */
ifne 2
1: .line 360
StackMap locals:
StackMap stack:
return
2: .line 361
StackMap locals:
StackMap stack:
aload 5 /* pixels */
arraylength
iload 3 /* w */
iload 4 /* h */
imul
if_icmpge 4
3: .line 362
new java.lang.IllegalArgumentException
dup
ldc "pixels array must have a length >= w*h"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: .line 366
StackMap locals:
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getType:()I
istore 6 /* imageType */
start local 6 // int imageType
5: .line 367
iload 6 /* imageType */
iconst_2
if_icmpeq 7
6: .line 368
iload 6 /* imageType */
iconst_1
if_icmpne 10
7: .line 369
StackMap locals: int
StackMap stack:
aload 0 /* img */
invokevirtual java.awt.image.BufferedImage.getRaster:()Ljava/awt/image/WritableRaster;
astore 7 /* raster */
start local 7 // java.awt.image.WritableRaster raster
8: .line 370
aload 7 /* raster */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
invokevirtual java.awt.image.WritableRaster.setDataElements:(IIIILjava/lang/Object;)V
end local 7 // java.awt.image.WritableRaster raster
9: .line 371
goto 11
10: .line 373
StackMap locals:
StackMap stack:
aload 0 /* img */
iload 1 /* x */
iload 2 /* y */
iload 3 /* w */
iload 4 /* h */
aload 5 /* pixels */
iconst_0
iload 3 /* w */
invokevirtual java.awt.image.BufferedImage.setRGB:(IIII[III)V
11: .line 375
StackMap locals:
StackMap stack:
return
end local 6 // int imageType
end local 5 // int[] pixels
end local 4 // int h
end local 3 // int w
end local 2 // int y
end local 1 // int x
end local 0 // java.awt.image.BufferedImage img
LocalVariableTable:
Start End Slot Name Signature
0 12 0 img Ljava/awt/image/BufferedImage;
0 12 1 x I
0 12 2 y I
0 12 3 w I
0 12 4 h I
0 12 5 pixels [I
5 12 6 imageType I
8 9 7 raster Ljava/awt/image/WritableRaster;
MethodParameters:
Name Flags
img
x
y
w
h
pixels
public static java.awt.image.BufferedImage createColorModelCompatibleImage(java.awt.image.BufferedImage);
descriptor: (Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 // java.awt.image.BufferedImage image
0: .line 389
aload 0 /* image */
invokevirtual java.awt.image.BufferedImage.getColorModel:()Ljava/awt/image/ColorModel;
astore 1 /* cm */
start local 1 // java.awt.image.ColorModel cm
1: .line 390
new java.awt.image.BufferedImage
dup
aload 1 /* cm */
2: .line 391
aload 1 /* cm */
aload 0 /* image */
invokevirtual java.awt.image.BufferedImage.getWidth:()I
3: .line 392
aload 0 /* image */
invokevirtual java.awt.image.BufferedImage.getHeight:()I
4: .line 391
invokevirtual java.awt.image.ColorModel.createCompatibleWritableRaster:(II)Ljava/awt/image/WritableRaster;
5: .line 393
aload 1 /* cm */
invokevirtual java.awt.image.ColorModel.isAlphaPremultiplied:()Z
aconst_null
6: .line 390
invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
areturn
end local 1 // java.awt.image.ColorModel cm
end local 0 // java.awt.image.BufferedImage image
LocalVariableTable:
Start End Slot Name Signature
0 7 0 image Ljava/awt/image/BufferedImage;
1 7 1 cm Ljava/awt/image/ColorModel;
MethodParameters:
Name Flags
image
public static java.awt.image.BufferedImage createCompatibleTranslucentImage(int, int);
descriptor: (II)Ljava/awt/image/BufferedImage;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 // int width
start local 1 // int height
0: .line 410
invokestatic javax.swing.plaf.nimbus.EffectUtils.isHeadless:()Z
ifeq 2
1: .line 411
new java.awt.image.BufferedImage
dup
iload 0 /* width */
iload 1 /* height */
iconst_2
invokespecial java.awt.image.BufferedImage.<init>:(III)V
goto 5
2: .line 412
StackMap locals:
StackMap stack:
invokestatic javax.swing.plaf.nimbus.EffectUtils.getGraphicsConfiguration:()Ljava/awt/GraphicsConfiguration;
iload 0 /* width */
iload 1 /* height */
3: .line 413
iconst_3
4: .line 412
invokevirtual java.awt.GraphicsConfiguration.createCompatibleImage:(III)Ljava/awt/image/BufferedImage;
5: .line 410
StackMap locals:
StackMap stack: java.awt.image.BufferedImage
areturn
end local 1 // int height
end local 0 // int width
LocalVariableTable:
Start End Slot Name Signature
0 6 0 width I
0 6 1 height I
MethodParameters:
Name Flags
width
height
private static boolean isHeadless();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: .line 417
invokestatic java.awt.GraphicsEnvironment.isHeadless:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static java.awt.GraphicsConfiguration getGraphicsConfiguration();
descriptor: ()Ljava/awt/GraphicsConfiguration;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: .line 422
invokestatic java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment:()Ljava/awt/GraphicsEnvironment;
1: .line 423
invokevirtual java.awt.GraphicsEnvironment.getDefaultScreenDevice:()Ljava/awt/GraphicsDevice;
invokevirtual java.awt.GraphicsDevice.getDefaultConfiguration:()Ljava/awt/GraphicsConfiguration;
2: .line 422
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "EffectUtils.java"