Package com.google.appengine.api.images

Examples of com.google.appengine.api.images.InputSettings


@RunWith(Arquillian.class)
public class TransformationsTest extends ImagesServiceTestBase {

    @Test
    public void testResize() throws IOException {
        InputSettings inputSettings = new InputSettings();
        OutputSettings outputSettings = new OutputSettings(OutputEncoding.PNG);

        Image originalImage = readImage(CAPEDWARF_PNG);
        assertEquals(200, originalImage.getWidth());
        assertEquals(143, originalImage.getHeight());
View Full Code Here


        assertEquals(200, resizedImage.getHeight());
    }

    @Test
    public void testResizeAsync() throws IOException {
        InputSettings inputSettings = new InputSettings();
        OutputSettings outputSettings = new OutputSettings(OutputEncoding.PNG);

        Image originalImage = readImage(CAPEDWARF_PNG);
        Image resizedImage = waitOnFuture(imagesService.applyTransformAsync(ImagesServiceFactory.makeResize(400, 286), originalImage));
        assertEquals(400, resizedImage.getWidth());
View Full Code Here

TOP

Related Classes of com.google.appengine.api.images.InputSettings

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.