How to add text to a bitmap image programmatically? WPF

前端 未结 2 539
有刺的猬
有刺的猬 2021-01-02 14:21

I\'m using a Kinect sensor to show a video feed on an image by setting the video feed as bitmap source like shown below. But my question is how would I add text to the image

2条回答
  •  执笔经年
    2021-01-02 14:45

    You don't need to draw the text into the image itself. In your XAML just add a TextBlock control at a higher Z order.

提交回复
热议问题