|
@@ -40,7 +40,7 @@ open class PQImageFilter: PQBaseFilter {
|
|
// print("mSticker path : \(String(describing: mSticker!.locationPath))")
|
|
// print("mSticker path : \(String(describing: mSticker!.locationPath))")
|
|
|
|
|
|
newImage = UIImage(contentsOfFile: documensDirectory + sticker.locationPath)
|
|
newImage = UIImage(contentsOfFile: documensDirectory + sticker.locationPath)
|
|
- //支持 bundle 加载图片
|
|
|
|
|
|
+ //try find image file frome in BFFramework bundle
|
|
if(newImage == nil){
|
|
if(newImage == nil){
|
|
newImage = UIImage().BF_Image(named: sticker.locationPath)
|
|
newImage = UIImage().BF_Image(named: sticker.locationPath)
|
|
}
|
|
}
|