close
Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

[CGD2D] Draw primitives with Porter-Duff blend modes #1389

@DHowett-MSFT

Description

@DHowett-MSFT

Direct2D supports a subset of CG's blend modes as direct composition modes, and a subset of CG's porter-duff blend modes with its blend effect.

The blend effect, however, requires a full target readback and recompose.

The scope of this issue is to support only the basic non-blend-effect composition modes for 1611.

kCGBlendModeNormal = kCGBlendModeSourceOver
kCGBlendModeSourceOver
kCGBlendModeDestinationOver
kCGBlendModeSourceIn
kCGBlendModeDestinationIn
kCGBlendModeSourceOut
kCGBlendModeDestinationOut
kCGBlendModeSourceAtop
kCGBlendModeDestinationAtop
kCGBlendModeXOR
kCGBlendModePlusLighter
kCGBlendModeCopy
kCGBlendModePlusDarker // Not supported

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions