Features
Win2D includes an extensive set of features to support lots of different scenarios. Here's a list of most of them, with useful links to related docs and API references to learn more.
Bitmap graphics
- Load, save and draw bitmap images
- Render to texture
- Use bitmaps as opacity masks
- Sprite batch API for efficiently drawing large numbers of bitmaps
- Use block compressed bitmap formats to save memory
- Load, save, and draw virtual bitmaps, which can be larger than the maximum GPU texture size and are automatically split into tiles
Vector graphics
- Draw primitive shapes (lines, rectangles, circles, etc.) or arbitrarily complex geometry
- Fill shapes using solid colors, image brushes, or linear and radial gradients
- Draw lines of any width with flexible stroke styles (dotted, dashed, etc.)
- High quality antialiasing
- Rich geometry manipulation (union, intersect, compute point on path, tessellate, etc.)
- Clip drawing to arbitrary geometric regions
- Capture drawing operations in command lists for later replay
- Rasterize ink strokes (from a stylus)
- Load, draw, and manipulate SVG vector graphics
Powerful image processing effects
- Blurs
- Blends
- Color adjustments (brightness, contrast, exposure, highlights & shadows, etc.)
- Filters (convolve, edge detection, emboss, sharpen)
- Lighting
- Custom pixel shaders
- Fully custom effects
- And many more...
Text
- Fully internationalized Unicode text rendering
- Text layouts can be drawn, measured, or hit-tested against
- Convert text outlines to geometry
- Enumerate fonts and query their metrics
- Draw or manipulate individual glyph runs to create custom text layouts
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer