AliSoftware / AliSoftware/OHPDFImage

Check if CGContextBeginTransparencyLayer can avoid the 2-step rendering

Offen
#5 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Objective-C
Sterne
56
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.