[英]How to save the scaled image in iphone
提前致謝。 我在圖像上使用了CGAffineTransformMakeScale(-1.0, 1.0)
變換
我得到了圖像 像這樣。
我在imageview中顯示它。
現在,如果我嘗試訪問該圖像並在另一個imageview中顯示,則它通常像第一個圖像一樣顯示。
但是我想要縮放的圖像。 誰能幫我如何保存和獲取縮放后的圖像。 在這里,此CGAffineTransformMakeScale(-1.0, 1.0)
方法不會對圖像產生影響。
以下方法有助於縮放以及翻轉圖像
UIImage *newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:1.0 orientation: UIImageOrientationUpMirrored];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.