Examples of image()


Examples of com.spotify.docker.client.messages.ContainerConfig.image()

                                                       .setEnv(ENV)
                                                       .build())
    );
    createFuture.set(createResponse);
    final ContainerConfig containerConfig = containerConfigCaptor.getValue();
    assertEquals(IMAGE, containerConfig.image());
    assertEquals(EXPECTED_CONTAINER_ENV, ImmutableSet.copyOf(containerConfig.env()));
    final String containerName = containerNameCaptor.getValue();

    assertEquals(JOB.getId().toShortString(), shortJobIdFromContainerName(containerName));
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    final int[] pixels = new int[ width * height ];

    final ARGBScreenImage simg = new ARGBScreenImage( width, height, pixels );

    // Paint a yellow rectangle
    final Graphics g = simg.image().getGraphics();
    g.setColor( Color.yellow );
    g.fillRect( 0, 0, 100, 100 );
    g.dispose();

    // Test whether the original array has changed
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    final int[] pixels = new int[ width * height ];

    final ARGBScreenImage simg = new ARGBScreenImage( width, height, pixels );

    // Paint a yellow rectangle
    final Graphics g = simg.image().getGraphics();
    g.setColor( Color.yellow );
    g.fillRect( 0, 0, 100, 100 );
    g.dispose();

    // Paint the image, now that it has been altered, onto another image
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    g.dispose();

    // Paint the image, now that it has been altered, onto another image
    final BufferedImage bi = new BufferedImage( width, height, BufferedImage.TYPE_INT_ARGB );
    final Graphics2D g2 = bi.createGraphics();
    g2.drawImage( simg.image(), 0, 0, null );
    g2.dispose();

    // Test if the first pixel, as seen from the image, is yellow
    return 0x00ffff00 == ( getPixel( bi, 0, 0 ) & 0x00ffffff );
  }
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    final int[] pixels = new int[ width * height ];

    final ARGBScreenImage simg = new ARGBScreenImage( width, height, pixels );

    // Paint a yellow rectangle
    final Graphics g = simg.image().getGraphics();
    g.setColor( Color.yellow );
    g.fillRect( 0, 0, 100, 100 );
    g.dispose();

    final BufferedImage[] capture = new BufferedImage[ 1 ];
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    SwingUtilities.invokeAndWait( new Runnable()
    {
      @Override
      public void run()
      {
        frame[ 0 ] = frame( simg.image(), "Test ARGBScreenImage" );
        frame[ 0 ].setVisible( true );
      }
    } );

    // Wait for all sorts of asynchronous events
View Full Code Here

Examples of net.imglib2.display.screenimage.awt.ARGBScreenImage.image()

    {
      @Override
      public void run()
      {
        // Paint into the image again
        final Graphics g2 = simg.image().getGraphics();
        g2.setColor( Color.red );
        g2.fillRect( 100, 100, 100, 100 );
        g2.dispose();
        final JPanel panel = ( JPanel ) frame[ 0 ].getContentPane().getComponent( 0 );
        panel.invalidate();
View Full Code Here

Examples of org.eclipse.sapphire.ImageService.image()

                                        };
                                       
                                        imageService.attach( this.imageServiceListener );
                                    }
                                   
                                    return imageService.image();
                                }

                                @Override
                                public void dispose()
                                {
View Full Code Here

Examples of org.eclipse.sapphire.ImageService.image()

       
        ImageData image = null;
       
        if( elementImageService != null )
        {
            image = elementImageService.image();
        }
        else
        {
            try
            {
View Full Code Here

Examples of org.eclipse.sapphire.services.ContentProposal.image()

                            contentProposalInfo.content(),
                            contentProposalInfo.label(),
                            contentProposalInfo.description(),
                            contentProposalInfo.content().length(),
                            this.sapphirePart.getSwtResourceCache().image(
                                    contentProposalInfo.image()));
                    arrContentProposals[i] = contentProposal;
                }
                return arrContentProposals;
            } else {
                return new IContentProposal[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.