本文整理汇总了Java中jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter.setCenter方法的典型用法代码示例。如果您正苦于以下问题:Java GPUImageSwirlFilter.setCenter方法的具体用法?Java GPUImageSwirlFilter.setCenter怎么用?Java GPUImageSwirlFilter.setCenter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter
的用法示例。
在下文中一共展示了GPUImageSwirlFilter.setCenter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SwirlFilterTransformation
import jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter; //导入方法依赖的package包/类
/**
* @param radius from 0.0 to 1.0, default 0.5
* @param angle minimum 0.0, default 1.0
* @param center default (0.5, 0.5)
*/
public SwirlFilterTransformation(Context context, BitmapPool pool, float radius, float angle,
PointF center) {
super(context, pool, new GPUImageSwirlFilter());
mRadius = radius;
mAngle = angle;
mCenter = center;
GPUImageSwirlFilter filter = getFilter();
filter.setRadius(mRadius);
filter.setAngle(mAngle);
filter.setCenter(mCenter);
}
示例2: SwirlFilterTransformation
import jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter; //导入方法依赖的package包/类
/**
* @param radius from 0.0 to 1.0, default 0.5
* @param angle minimum 0.0, default 1.0
* @param center default (0.5, 0.5)
*/
public SwirlFilterTransformation(Context context, float radius, float angle, PointF center) {
super(context, new GPUImageSwirlFilter());
mRadius = radius;
mAngle = angle;
mCenter = center;
GPUImageSwirlFilter filter = getFilter();
filter.setRadius(mRadius);
filter.setAngle(mAngle);
filter.setCenter(mCenter);
}
示例3: SwirlFilterPostprocessor
import jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter; //导入方法依赖的package包/类
/**
* @param radius from 0.0 to 1.0, default 0.5
* @param angle minimum 0.0, default 1.0
* @param center default (0.5, 0.5)
*/
public SwirlFilterPostprocessor(Context context, float radius, float angle, PointF center) {
super(context, new GPUImageSwirlFilter());
this.radius = radius;
this.angle = angle;
this.center = center;
GPUImageSwirlFilter filter = getFilter();
filter.setRadius(this.radius);
filter.setAngle(this.angle);
filter.setCenter(this.center);
}
示例4: SwirlFilterTransformation
import jp.co.cyberagent.android.gpuimage.GPUImageSwirlFilter; //导入方法依赖的package包/类
/**
* @param radius from 0.0 to 1.0, default 0.5
* @param angle minimum 0.0, default 1.0
* @param center default (0.5, 0.5)
*/
public SwirlFilterTransformation(float radius, float angle, PointF center) {
super(new GPUImageSwirlFilter());
this.radius = radius;
this.angle = angle;
this.center = center;
GPUImageSwirlFilter filter = getFilter();
filter.setRadius(this.radius);
filter.setAngle(this.angle);
filter.setCenter(this.center);
}