AliSoftware / AliSoftware/OHPDFImage

Check if CGContextBeginTransparencyLayer can avoid the 2-step rendering

未關閉
#5 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Objective-C
星號
56
分支
3
PR 合併指標
30 天內沒有已合併 PR

描述

See [Quartz 2D PG: Transparency Layers](https://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_trans_layers/dq_trans_layers.html)

Using `CGContextBeginTransparencyLayer`/`CGContextEndTransparencyLayer` may be a solution to avoid doing a 2-step rendering (first tinting, then do the final rendering), by using layers instead of generating a first `UIImage` then using it to generate the second, final image.

This is only a hypothesis and some stuff to experiment — maybe that won't do it, but it's worth testing and digging a bit to check if that may be interesting.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。