void mapUnframedImages(List<BeanImage> beanImages, List<UnframedPicassoTargetNew> targets){
totalImages = beanImages.size();
this.targets = targets;
if(totalImages > frameModel.getMaxFrameCount() && frameModel.isShouldSortImages()){
//sort image a/c to primary and secondary value
Collections.sort(beanImages);
}
this.beanImages.addAll(beanImages);
unframedImageCounter = 0;
BeanImage beanImage = beanImages.get(0);
if(Utils.isLocalPath(beanImage.getImageLink())){
Utils.logVerbose("LADING AS : "+"local image " + beanImage.getImageLink());
new UnframedLocalTask(this).execute(beanImage);
} else {
Utils.logVerbose("LADING AS : " + "server image " + beanImage.getImageLink());
UnframedPicassoTargetNew target = new UnframedPicassoTargetNew(this, beanImage);
targets.add(target);
currentFramePicasso.load(beanImage.getImageLink()).memoryPolicy(MemoryPolicy.NO_STORE)
.networkPolicy(NetworkPolicy.NO_STORE)
.noPlaceholder()
.transform(new ScaleTransformation(frameModel.getMaxContainerWidth(),
frameModel.getMaxContainerHeight(), totalImages, beanImage.getImageLink(),
beanImage, this))
.into(target);
}
}
ImageShading.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:BitFrames
作者:
评论列表
文章目录