How to render bitmap into canvas in WPF?

前端 未结 3 640
日久生厌
日久生厌 2020-12-09 06:01

I\'ve subclassed Canvas so that I can override its Render function. I need to know how I can load a bitmap in WPF and render that to the canvas. I\

3条回答
  •  既然无缘
    2020-12-09 06:58

    In WPF it is a rare case that you would need to override OnRender especially if all you wanted to do was draw a BMP to a background:

    
        
            
        
        
    
    

提交回复
热议问题