How to draw/overlay an image file to a bitmap image?

前端 未结 2 1228
一整个雨季
一整个雨季 2021-01-06 13:20

I have a video feed from a Kinect sensor hosted by an image stored as a bitmap. My question is how do I overlay an image, for example a .png on to the video fee

2条回答
  •  耶瑟儿~
    2021-01-06 14:08

    If you just want display an Image on top of another UI control, then you can either just declare one after the other UI elements, or set the Panel.ZIndex property:

    
        
        
    
    

    Or:

    
        
        
    
    

    To find out how to data bind a BitmapImage to an Image.ItemsSource property, please see the Bind Xaml bitmap image question here on StackOverflow. To position the Image in a specific place, you can either use the Image.Margin property or put it in a Canvas and use the Canvas.Left and Canvas.Top properties.

提交回复
热议问题