Giving a border to Canvas

后端 未结 1 1131
暗喜
暗喜 2021-01-07 14:33

In Flex, I am using

var canvasEdit:Canvas = new Canvas();
canvasEdit.setStyle(\"borderColor\", 0x0134FF);
canvasEdit.setStyle(\"borderThickness\", 3);
         


        
1条回答
  •  生来不讨喜
    2021-01-07 14:52

    Try adding the following line:

    canvasEdit.setStyle("borderStyle","solid");
    

    ...for example, here is a full application file example:

    
    
        
            
        
        
    
    

    0 讨论(0)
提交回复
热议问题