
com.appium.utils.ImageUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AppiumTestDistribution Show documentation
Show all versions of AppiumTestDistribution Show documentation
A tool run Android and iOS test in parallel across devices
package com.appium.utils;
import org.im4java.core.ConvertCmd;
import org.im4java.core.IM4JavaException;
import org.im4java.core.IMOperation;
import java.io.IOException;
/**
* Created by saikrisv on 17/03/16.
*/
public class ImageUtils {
public void wrapDeviceFrames(String deviceFrame, String deviceScreenToBeFramed,
String framedDeviceScreen)
throws InterruptedException, IOException, IM4JavaException {
IMOperation op = new IMOperation();
op.addImage(deviceFrame);
op.addImage(deviceScreenToBeFramed);
op.gravity("center");
op.composite();
op.opaque("none");
op.addImage(framedDeviceScreen);
ConvertCmd cmd = new ConvertCmd();
cmd.run(op);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy