mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix captured photo quality
This commit is contained in:
@@ -27,6 +27,7 @@ private func prerenderTextTransformations(entity: DrawingTextEntity, image: UIIm
|
||||
let newImage = generateImage(newSize, contextGenerator: { size, context in
|
||||
context.setAllowsAntialiasing(true)
|
||||
context.setShouldAntialias(true)
|
||||
context.interpolationQuality = .high
|
||||
context.clear(CGRect(origin: .zero, size: size))
|
||||
context.translateBy(x: newSize.width * 0.5, y: newSize.height * 0.5)
|
||||
context.rotate(by: angle)
|
||||
|
||||
Reference in New Issue
Block a user