Skip to content

Check if CGContextBeginTransparencyLayer can avoid the 2-step rendering #5

Description

@AliSoftware

See Quartz 2D PG: Transparency Layers

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions