public class javax.swing.GrayFilter extends java.awt.image.RGBImageFilter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.GrayFilter
super_class: java.awt.image.RGBImageFilter
{
private boolean brighter;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int percent;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public static java.awt.Image createDisabledImage(java.awt.Image);
descriptor: (Ljava/awt/Image;)Ljava/awt/Image;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new javax.swing.GrayFilter
dup
iconst_1
bipush 50
invokespecial javax.swing.GrayFilter.<init>:(ZI)V
astore 1
start local 1 1: new java.awt.image.FilteredImageSource
dup
aload 0
invokevirtual java.awt.Image.getSource:()Ljava/awt/image/ImageProducer;
aload 1
invokespecial java.awt.image.FilteredImageSource.<init>:(Ljava/awt/image/ImageProducer;Ljava/awt/image/ImageFilter;)V
astore 2
start local 2 2: invokestatic java.awt.Toolkit.getDefaultToolkit:()Ljava/awt/Toolkit;
aload 2
invokevirtual java.awt.Toolkit.createImage:(Ljava/awt/image/ImageProducer;)Ljava/awt/Image;
astore 3
start local 3 3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i Ljava/awt/Image;
1 4 1 filter Ljavax/swing/GrayFilter;
2 4 2 prod Ljava/awt/image/ImageProducer;
3 4 3 grayImage Ljava/awt/Image;
MethodParameters:
Name Flags
i
public void <init>(boolean, int);
descriptor: (ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.awt.image.RGBImageFilter.<init>:()V
1: aload 0
iload 1
putfield javax.swing.GrayFilter.brighter:Z
2: aload 0
iload 2
putfield javax.swing.GrayFilter.percent:I
3: aload 0
iconst_1
putfield javax.swing.GrayFilter.canFilterIndexColorModel:Z
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/GrayFilter;
0 5 1 b Z
0 5 2 p I
MethodParameters:
Name Flags
b
p
public int filterRGB(int, int, int);
descriptor: (III)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc 0.3
iload 3
bipush 16
ishr
sipush 255
iand
i2d
dmul
1: ldc 0.59
iload 3
bipush 8
ishr
sipush 255
iand
i2d
dmul
2: dadd
3: ldc 0.11
iload 3
sipush 255
iand
i2d
dmul
4: dadd
5: ldc 3.0
6: ddiv
d2i
istore 4
start local 4 7: aload 0
getfield javax.swing.GrayFilter.brighter:Z
ifeq 10
8: sipush 255
sipush 255
iload 4
isub
bipush 100
aload 0
getfield javax.swing.GrayFilter.percent:I
isub
imul
bipush 100
idiv
isub
istore 4
9: goto 11
10: StackMap locals: int
StackMap stack:
iload 4
bipush 100
aload 0
getfield javax.swing.GrayFilter.percent:I
isub
imul
bipush 100
idiv
istore 4
11: StackMap locals:
StackMap stack:
iload 4
ifge 12
iconst_0
istore 4
12: StackMap locals:
StackMap stack:
iload 4
sipush 255
if_icmple 13
sipush 255
istore 4
13: StackMap locals:
StackMap stack:
iload 3
ldc -16777216
iand
iload 4
bipush 16
ishl
ior
iload 4
bipush 8
ishl
ior
iload 4
iconst_0
ishl
ior
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljavax/swing/GrayFilter;
0 14 1 x I
0 14 2 y I
0 14 3 rgb I
7 14 4 gray I
MethodParameters:
Name Flags
x
y
rgb
}
SourceFile: "GrayFilter.java"