清除注释代码
This commit is contained in:
parent
78368421e8
commit
7caa6b1a3e
@ -176,18 +176,6 @@ class PlayByTransferConvertor {
|
|||||||
|
|
||||||
//将两张图片合成一张图片
|
//将两张图片合成一张图片
|
||||||
func joinImages( leftImage:CIImage, rightImage:CIImage,scale:CGFloat,ed:Int) -> CIImage {
|
func joinImages( leftImage:CIImage, rightImage:CIImage,scale:CGFloat,ed:Int) -> CIImage {
|
||||||
// let left2 = UIImage(ciImage: leftImage )
|
|
||||||
// let right2 = UIImage(ciImage: rightImage )
|
|
||||||
//
|
|
||||||
// UIGraphicsBeginImageContextWithOptions(left2.size, false, 1);
|
|
||||||
// left2.draw(in: CGRect(x:0, y:0, width:left2.size.width*0.5, height:left2.size.height))
|
|
||||||
// right2.draw(in: CGRect(x:0, y:left2.size.width*0.5, width:left2.size.width*0.5, height:left2.size.height))
|
|
||||||
// let image2 = UIGraphicsGetImageFromCurrentImageContext()!
|
|
||||||
// UIGraphicsEndImageContext();
|
|
||||||
//
|
|
||||||
// let ci2 = CIImage(cgImage: image2.cgImage!)
|
|
||||||
// return ci2
|
|
||||||
//
|
|
||||||
|
|
||||||
//缩放参数,此处必须大于0.5
|
//缩放参数,此处必须大于0.5
|
||||||
//瞳距参数,暂定 瞳距与像素点的比例为1:2,瞳距的值范围为 -30 ~ +30 之间的整数
|
//瞳距参数,暂定 瞳距与像素点的比例为1:2,瞳距的值范围为 -30 ~ +30 之间的整数
|
||||||
@ -232,7 +220,6 @@ class PlayByTransferConvertor {
|
|||||||
ed_left.draw(in:leftRect )
|
ed_left.draw(in:leftRect )
|
||||||
|
|
||||||
let rightRect = CGRect(x:imageWidth + (imageWidth - n_right_size.width) * 0.5 , y:(imageHeight - n_right_size.height) * 0.5, width:n_right_size.width, height:n_right_size.height)
|
let rightRect = CGRect(x:imageWidth + (imageWidth - n_right_size.width) * 0.5 , y:(imageHeight - n_right_size.height) * 0.5, width:n_right_size.width, height:n_right_size.height)
|
||||||
// let rightRect = CGRect(x:imageWidth , y:(imageHeight - n_right_size.height) * 0.5, width:n_right_size.width, height:n_right_size.height)
|
|
||||||
ed_right.draw(in:rightRect )
|
ed_right.draw(in:rightRect )
|
||||||
|
|
||||||
print("newImageSize:\(newImageSize) \nimageWidth:\(imageWidth) \ned_left.size:\(ed_left.size) \nleftRect:\(leftRect) \nrightRect:\(rightRect)")
|
print("newImageSize:\(newImageSize) \nimageWidth:\(imageWidth) \ned_left.size:\(ed_left.size) \nleftRect:\(leftRect) \nrightRect:\(rightRect)")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user