j2dbench.tests.GraphicsTests Java Examples

The following examples show how to use j2dbench.tests.GraphicsTests. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Destinations.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #2
Source File: Destinations.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #3
Source File: TestEnvironment.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #4
Source File: Destinations.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #5
Source File: TestEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #6
Source File: Destinations.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #7
Source File: TestEnvironment.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #8
Source File: Destinations.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #9
Source File: TestEnvironment.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #10
Source File: Destinations.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #11
Source File: TestEnvironment.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #12
Source File: Destinations.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #13
Source File: TestEnvironment.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #14
Source File: TestEnvironment.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #15
Source File: TestEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #16
Source File: TestEnvironment.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #17
Source File: Destinations.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #18
Source File: TestEnvironment.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #19
Source File: Destinations.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #20
Source File: TestEnvironment.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #21
Source File: Destinations.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #22
Source File: TestEnvironment.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #23
Source File: Destinations.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #24
Source File: TestEnvironment.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void flushToScreen() {
    if (testImage != null && comp != null) {
        Graphics g = comp.getGraphics();
        if (GraphicsTests.hasGraphics2D) {
            ((Graphics2D) g).setComposite(AlphaComposite.Src);
        }
        g.drawImage(testImage, 0, 0, null);
        g.dispose();
    }
}
 
Example #25
Source File: Destinations.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            new VolatileImg();
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new CustomImg();
    }
}
 
Example #26
Source File: Destinations.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public static void init() {
    destroot = new Group.EnableSet(TestEnvironment.globaloptroot,
                                   "dest", "Output Destination Options");

    new Screen();
    new OffScreen();

    if (GraphicsTests.hasGraphics2D) {
        if (ImageTests.hasCompatImage) {
            compatimgdestroot =
                new Group.EnableSet(destroot, "compatimg",
                                    "Compatible Image Destinations");
            compatimgdestroot.setHorizontal();

            new CompatImg();
            new CompatImg(Transparency.OPAQUE);
            new CompatImg(Transparency.BITMASK);
            new CompatImg(Transparency.TRANSLUCENT);
        }

        if (ImageTests.hasVolatileImage) {
            volimgdestroot = new Group.EnableSet(destroot, "volimg",
                    "Output to Volatile Image");

            volimgdestroot.setHorizontal();
            new VolatileImg();
            if (ImageTests.hasTransparentVolatileImage) {
                new VolatileImg(Transparency.OPAQUE);
                new VolatileImg(Transparency.BITMASK);
                new VolatileImg(Transparency.TRANSLUCENT);
            }
        }

        bufimgdestroot = new Group.EnableSet(destroot, "bufimg",
                                             "BufferedImage Destinations");

        new BufImg(BufferedImage.TYPE_INT_RGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB);
        new BufImg(BufferedImage.TYPE_INT_ARGB_PRE);
        new BufImg(BufferedImage.TYPE_3BYTE_BGR);
        new BufImg(BufferedImage.TYPE_BYTE_INDEXED);
        new BufImg(BufferedImage.TYPE_BYTE_GRAY);
        new BufImg(BufferedImage.TYPE_4BYTE_ABGR);
        new BufImg(BufferedImage.TYPE_4BYTE_ABGR_PRE);
        new CustomImg();
    }
}