Examples of createImage()


Examples of ae.java.awt.peer.ComponentPeer.createImage()

     * @since     JDK1.0
     */
    public Image createImage(ImageProducer producer) {
        ComponentPeer peer = this.peer;
        if ((peer != null) && ! (peer instanceof LightweightPeer)) {
            return peer.createImage(producer);
        }
        return getToolkit().createImage(producer);
    }

    /**
 
View Full Code Here

Examples of com.amazon.ec2.AmazonEC2SkeletonInterface.createImage()

        return ec2Service.createDhcpOptions(createDhcpOptions);
    }

    public CreateImageResponse createImage(CreateImage createImage) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.createImage(createImage);
    }

    public CreateKeyPairResponse createKeyPair(CreateKeyPair createKeyPair) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.createKeyPair(createKeyPair);
View Full Code Here

Examples of com.google.code.kaptcha.Producer.createImage()

        Config config = new Config(new Properties());
        Producer captchaProducer = config.getProducerImpl();
        String captchaText = captchaProducer.createText();

        BufferedImage image = captchaProducer.createImage(captchaText);

        File tempFile = File.createTempFile("temp-", ".jpg");

        try {
            ImageIO.write(image, "jpg", tempFile);
View Full Code Here

Examples of com.google.code.kaptcha.impl.DefaultKaptcha.createImage()

      {
        DefaultKaptcha kaptcha = new DefaultKaptcha();
        Properties properties = new Properties();
        kaptcha.setConfig(new Config(properties));
        randomText = Captcha.randomString(6, 8);
        BufferedImage image = kaptcha.createImage(randomText);
        return toImageData(image);
      }
    };
  }
}
View Full Code Here

Examples of com.google.gwt.user.client.ui.AbstractImagePrototype.createImage()

   public void createImage() {
      // Arrange
      AbstractImagePrototype proto = menuBarImages.menuBarSubMenuIcon();

      // Act
      Image image = proto.createImage();

      // Assert
      assertEquals("http://127.0.0.1:8888/gwt_test_utils_module/menuBarSubMenuIcon.gif",
               image.getUrl());
   }
View Full Code Here

Examples of datasoul.serviceitems.song.ChordShapePanel.createImage()

        for(int i=0; i<chordsName.size();i++){
            Chord chord = chordsDB.getChordByName(chordsName.get(i));
            if(chord!=null){
                ChordShapePanel csp = new ChordShapePanel(2, chord.getName(),chord.getShape());
                BufferedImage im = csp.createImage();
                try{
                    File tmp = File.createTempFile("datasoul-img", ".png");
                    tmp.deleteOnExit();
                    filesToDelete.add(tmp);
                   
View Full Code Here

Examples of de.innovationgate.eclipse.editors.helpers.DirectAccessCompositeImageDescriptor.createImage()

            IFile file = (IFile) element;
           
            if (file.getFileExtension() != null && file.getFileExtension().equals("tml")) {
                if (WGADesignStructureHelper.isDirectAccess(file)) {
                    descriptor.getImageData();
                    return descriptor.createImage();
                }
            }
        }
   
        return image;
View Full Code Here

Examples of ij.process.ImageProcessor.createImage()

      throw new FormatIOException("Null ImagePlus Object.");
    }
    ImageProcessor ip = imp.getProcessor();
    int width = ip.getWidth();
    int height = ip.getHeight();
    Image img = ip.createImage();
    imp.flush();
    imp = null;
    ip = null;
   
    BufferedImage bImg = new BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR);
View Full Code Here

Examples of io.fathom.cloud.compute.scheduler.SchedulerHost.createImage()

        metadata.put(ImageService.METADATA_KEY_CONTAINER_FORMAT, "tar");
        metadata.put(ImageService.METADATA_KEY_DISK_FORMAT, "raw");

        UUID containerId = UUID.fromString(hostCookie);
        try (TempFile snapshot = host.createImage(containerId)) {
            ImageService.Image image = imageService.createImage(instance.getProjectId(), metadata);
            BlobData blobData = BlobData.build(snapshot.getFile());
            image = imageService.uploadData(image, blobData);
            return image;
        }
View Full Code Here

Examples of java.awt.Canvas.createImage()

                pix[ptr++] = c;
        }
        for (int k = fullWidth; k < pix.length; k += fullWidth) {
            System.arraycopy(pix, 0, pix, k, fullWidth);
        }
        Image img = canvas.createImage(new MemoryImageSource(fullWidth, height, pix, 0, fullWidth));
       
        return img;
    }
}
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.