Precise OpacityMask

后端 未结 4 1057
青春惊慌失措
青春惊慌失措 2021-02-04 10:14

Suppose I need to set an opacity mask on a WPF control that highlights a portion of it in precise position (suppose a 50x50 square at (50;50) position). To do that I create a Dr

4条回答
  •  悲&欢浪女
    2021-02-04 11:05

    Since you have parts that stick out from the control, one idea is to separate control image from the control mask.

    
    
         
    
             
                 
                    
                        
    
                        
                            
                                
                                    
                                        
                                            
                                                
                                            
                                        
                                        
                                            
                                                
                                            
                                        
                                    
                                
                            
                        
                    
                
    
                 
                    
                
            
        
    
    

提交回复
热议问题