All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blitline.image.functions.PadResizeToFit Maven / Gradle / Ivy

There is a newer version: 0.17.1
Show newest version
package com.blitline.image.functions;

import com.blitline.image.functions.params.Gravity;

public class PadResizeToFit extends AbstractFunction {
	@Override
	public String getName() {
		return "pad";
	}
	
	public PadResizeToFit(int width, int height) {
		params.put("width", width);
		params.put("height", height);
	}
	
	public PadResizeToFit gravity(Gravity gravity) {
		params.put("gravity", gravity);
		return this;
	}
	
	public PadResizeToFit color(String color) {
		params.put("color", color);
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy