Package java.awt

Examples of java.awt.ImageCapabilities


    @Override
    public ImageCapabilities getCapabilities(GraphicsConfiguration gc) {
        if (isConfigValid(gc)) {
            return isAccelerationEnabled() ?
                new AcceleratedImageCapabilities() :
                new ImageCapabilities(false);
        }
        return super.getCapabilities(gc);
    }
View Full Code Here


        return new WinGDIPGraphics2D(this, width, height);
    }

    @Override
    public ImageCapabilities getCapabilities() {
        return new ImageCapabilities(false);
    }
View Full Code Here

        }

        BufferCapabilities bc = defaultBC;
        if (requestVSync) {
            bc = new sun.java2d.pipe.hw.ExtendedBufferCapabilities(
                    new ImageCapabilities(true),
                    new ImageCapabilities(true),
                    FlipContents.COPIED,
                    sun.java2d.pipe.hw.ExtendedBufferCapabilities.VSyncType.VSYNC_ON);
        }
        try {
            createBufferStrategy(2, bc);
View Full Code Here

            setIgnoreRepaint(true);
            setSize(400, 400);
        }

        public void render() {
            ImageCapabilities imgBackBufCap = new ImageCapabilities(true);
            ImageCapabilities imgFrontBufCap = new ImageCapabilities(true);
            BufferCapabilities bufCap =
                new BufferCapabilities(imgFrontBufCap,
                    imgBackBufCap, BufferCapabilities.FlipContents.COPIED);
            try {
View Full Code Here

    @Override
    public ImageCapabilities getCapabilities(GraphicsConfiguration gc) {
        if (isConfigValid(gc)) {
            return isAccelerationEnabled() ?
                new AcceleratedImageCapabilities() :
                new ImageCapabilities(false);
        }
        return super.getCapabilities(gc);
    }
View Full Code Here

     * images are accelerated but not volatile.
     */
    @Override
    public ImageCapabilities getCapabilities(GraphicsConfiguration gc) {
        if (isConfigValid(gc) && isAccelerationEnabled()) {
            return new ImageCapabilities(true);
        }
        return new ImageCapabilities(false);
    }
View Full Code Here

        return new WinGDIPGraphics2D(this, width, height);
    }

    @Override
    public ImageCapabilities getCapabilities() {
        return new ImageCapabilities(false);
    }
View Full Code Here

        return new WinGDIPGraphics2D(this, width, height);
    }

    @Override
    public ImageCapabilities getCapabilities() {
        return new ImageCapabilities(false);
    }
View Full Code Here

  }

  public void canvasSetRenderingMode() {
    if (Monitor.MULTI_BUFFERING <= 0) return;
    BufferCapabilities desiredCaps = new BufferCapabilities(
      new ImageCapabilities(true), new ImageCapabilities(true),
      Monitor.PAGE_FLIPPING ? FlipContents.BACKGROUND : null
    );
    Class<?> extBufCapClass = null;
    try {
      // Creates ExtendedBufferCapabilities via reflection to avoid problems with AccessControl
View Full Code Here

  }

  public void canvasSetRenderingMode() {
    if (Monitor.MULTI_BUFFERING <= 0) return;
    BufferCapabilities desiredCaps = new BufferCapabilities(
      new ImageCapabilities(true), new ImageCapabilities(true),
      Monitor.PAGE_FLIPPING ? FlipContents.BACKGROUND : null
    );
    Class<?> extBufCapClass = null;
    try {
      // Creates ExtendedBufferCapabilities via reflection to avoid problems with AccessControl
View Full Code Here

TOP

Related Classes of java.awt.ImageCapabilities

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.