Examples of writeImage()


Examples of com.volantis.mcs.protocols.VolantisProtocol.writeImage()

        final VolantisProtocol protocol = getProtocol();

        MethodInvoker invoker = new MethodInvoker() {
            public void invoke() throws Exception {
                protocol.writeImage(attributes);
            }
        };
        String expecting = getExpectedWriteImageResult();
        ProtocolIntegrationTestHelper.doTest(expectations, protocol, invoker, expecting);
    }
View Full Code Here

Examples of de.innovationgate.utils.ImageScaler.writeImage()

        scaler.setQuality(fCompression.floatValue());
       
        scaler.scaleToSize(Integer.parseInt(width), Integer.parseInt(height), new Boolean(keepRatio).booleanValue());
       
        // Write scaled image to target file
        scaler.writeImage(targetFile);
       
        doc.attachFile(targetFile)
    }

    /**
 
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.writeImage()

                    for (int xIndex = 0; xIndex < dimX; ++xIndex) {
                        doubleArray[yIndex * dimX + xIndex] = dataMatrix[yIndex][xIndex];
                    }
                }
                try {
                    attribute.writeImage(dimX, dimY, doubleArray);
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to write the TangORB attribute value for the device "
View Full Code Here

Examples of magick.MagickImage.writeImage()

            //  java.lang.Runtime.getRuntime().runFinalization();

      ImageInfo info = new ImageInfo(args[0]);
      MagickImage image = new MagickImage(info);
      image.setFileName("copy_" + args[0]);
      image.writeImage(info);
            MagickImage thumb = image.scaleImage(10, 10);
      Thread.sleep(1000);

            // Force finalization and garbage collection.
            System.runFinalization();
View Full Code Here

Examples of magick.MagickImage.writeImage()

            System.out.println("Depth is "+image.getDepth());
            System.out.println("Matte is "+image.getMatte());
            image.setMatte(false);
            image.signatureImage();
            image.setFileName("copy.jpg");
            image.writeImage(info);

            // Background Color
            System.out.println("Old colour " + image.getBackgroundColor());
            image.setBackgroundColor(PixelPacket.queryColorDatabase("red"));
            System.out.println("New colour " + image.getBackgroundColor());
View Full Code Here

Examples of magick.MagickImage.writeImage()

            // Border image
            image.setBorderColor(PixelPacket.queryColorDatabase("green"));
            MagickImage borderedImage = image.borderImage(new Rectangle(0, 0,
                    10, 20));
            borderedImage.setFileName("border.jpg");
            borderedImage.writeImage(info);

            // Raise image
            MagickImage raisedImage = new MagickImage(new ImageInfo("pics.jpg"));
            raisedImage.raiseImage(new Rectangle(0, 0, 10, 20), true);
            raisedImage.setFileName("raised.jpg");
View Full Code Here

Examples of magick.MagickImage.writeImage()

            // Raise image
            MagickImage raisedImage = new MagickImage(new ImageInfo("pics.jpg"));
            raisedImage.raiseImage(new Rectangle(0, 0, 10, 20), true);
            raisedImage.setFileName("raised.jpg");
            raisedImage.writeImage(info);

            // Profile test
            System.out.println("Number of generic profiles "
                    + image.getGenericProfileCount());
            displayProfile(image.getColorProfile());
View Full Code Here

Examples of magick.MagickImage.writeImage()

            MontageInfo montageInfo = new MontageInfo(new ImageInfo());
            montageInfo.setFileName("montage.jpg");
            montageInfo.setTitle("Melbourne");
            montageInfo.setBorderWidth(5);
            MagickImage montage = seqImage.montageImages(montageInfo);
            montage.writeImage(new ImageInfo());

            // Converting the montage into a blob
            montage.setMagick("JPG");
            byte[] mblob = montage.imageToBlob(new ImageInfo());
            System.out.println("Length "+mblob.length);
View Full Code Here

Examples of magick.MagickImage.writeImage()

            System.out.println("Length "+mblob.length);

            // Test average
            MagickImage average = seqImage.averageImages();
            average.setFileName("average.jpg");
            average.writeImage(new ImageInfo());

            // Image to blob
            info = new ImageInfo();
            byte[] blob = image.imageToBlob(info);
View Full Code Here

Examples of magick.MagickImage.writeImage()

            Dimension imageDim = blobImage.getDimension();
            System.out.println("Blob width is " + imageDim.width);
            System.out.println("Blob heght is " + imageDim.height);
            System.out.println(imageDim);
            blobImage.setFileName("blob.jpg");
            blobImage.writeImage(info);

            // JPEG Image to GIF blob
            image.setMagick("GIF");
            blob = image.imageToBlob(info);
            try {
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.