我已经将Aviary照片编辑器集成到我的Android应用程序中。
我正在传递下面的工具-
String[] tools = new String[]{"SHARPNESS", "EFFECTS",
"REDEYE",
"CROP",
"WHITEN", "DRAW", "STICKERS", "TEXT", "BLEMISH", "MEME",
"ORIENTATION", "ENHANCE", "FRAMES", "SPLASH", "FOCUS", "BLUR",
"VIGNETTE", "LIGHTING", "COLOR", "OVERLAYS"};
newIntent.putExtra(Constants.EXTRA_TOOLS_LIST, tools);但种植不起作用。
编辑
裁剪现在正在工作,但是当我从mMainController.getBitmap获得位图时,它仍然返回原始位图(没有裁剪)。
这是我的密码-
@Override
public void onApplyClick() {
// TODO Auto-generated method stub
mMainController.onApply();
SaveBitmap(mMainController.getBitmap());//This is returning original bimap NOT CROPPED.
}发布于 2016-04-18 14:42:33
对于Creative组件(以前的Aviary)的最新版本,可以使用ToolLoaderFactory.Tools数组设置工具列表。
制作数组
例如:
ToolLoaderFactory.Tools[] tools = {
ToolLoaderFactory.Tools.CROP,
ToolLoaderFactory.Tools.TEXT};ToolLoaderFactory.Tools是一个枚举,所以Android将向您展示一个可以供您选择的可用工具的自动完整列表。
配置图像编辑器
然后使用tools方法将AdobeImageIntent.Builder传递给.withToolList(),如下所示:
Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
.setData(uri)
.withToolList(tools)
.build();(请注意,自从Creative的v0.9.7之后,AviaryIntent被重命名为AdobeImageIntent。)
更多信息
想了解更多信息,在Creative博客上看到这篇博客文章。
https://stackoverflow.com/questions/36692181
复制相似问题