WPF Graphics Rendering Services - Drawing
WPF provides the Drawing that is a sophisticated drawing and geometry programming interface that renders even more lightweight 2D vector images.
Because they are more lightweight, Drawing-derived types do not have intrinsic support for handling input events, as they are not UIElementsor FrameworkElements(although it is possible to programmatically perform hit-testing logic).
Another key difference between Drawing-derived types and Shape-derived types is that Drawing derived types have no ability to render themselves, as they do not derive from UIElement! Rather, derived types must be placed within a hosting object (specifically, DrawingImage, DrawingBrush, or DrawingVisual) to display their content.
- DrawingGroup
- GeometryDrawing
- GlyphRunDrawing
- ImageDrawing
- VideoDrawing
Because they are more lightweight, Drawing-derived types do not have intrinsic support for handling input events, as they are not UIElementsor FrameworkElements(although it is possible to programmatically perform hit-testing logic).
Another key difference between Drawing-derived types and Shape-derived types is that Drawing derived types have no ability to render themselves, as they do not derive from UIElement! Rather, derived types must be placed within a hosting object (specifically, DrawingImage, DrawingBrush, or DrawingVisual) to display their content.
댓글
댓글 쓰기