InsertShape crossed lines produce a non-color value, how to fix?
    8 views (last 30 days)
  
       Show older comments
    
    mark palmer
      
 on 13 Jan 2023
  
    
    
    
    
    Commented: mark palmer
      
 on 13 Jan 2023
            Whey is there a white value where the two lines cross in this example, and how can I keep it the color specified in InsertShape?

clear all
    pzzz = 255 - uint8(zeros(200,200,3)); % DOUBLE TO UINT8
    pzzz = insertShape(pzzz,'Polygon', [1 100 200 1, 10 10 150 150],...
         Color=[0 0 0], LineWidth=5, Opacity=1);
     imagesc(pzzz)
0 Comments
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
