AliSoftware / AliSoftware/OHPDFImage

Check if CGContextBeginTransparencyLayer can avoid the 2-step rendering

オープン
#5 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。