gpt4 book ai didi

ios - 水平翻转 CIImage

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:57:38 25 4
gpt4 key购买 nike

我正在尝试水平翻转我的 CIImage :

image = [image imageByApplyingTransform:CGAffineTransformMakeScale(1, -1)];
image = [image imageByApplyingTransform:CGAffineTransformMakeTranslation(0, sourceExtent.size.height)];

但我总是让图像垂直翻转

最佳答案

试试这个方法:

image = [image imageByApplyingTransform:CGAffineTransformMakeScale(-1, 1)];
image = [image imageByApplyingTransform:CGAffineTransformMakeTranslation(0, sourceExtent.size.height)];

关于ios - 水平翻转 CIImage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36966854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com