캔버스 » Api
  
drawroundrect
  
Description
SVG에 모서리둥근사각형을 그리는 API이다.
  
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | nLeft | 
        short | 
 	왼쪽좌표 | 
      
    
    
        | nTop | 
        short | 
 	위쪽좌표 | 
      
    
    
        | nWidth | 
        short | 
 	너비 | 
      
    
    
        | nHeight | 
        short | 
 	높이 | 
      
    
    
        | nRoundX | 
        short | 
 	수평방향 굴림정도 | 
      
    
    
        | nRoundY | 
        short | 
 	수직방향 굴림정도 | 
      
    
    
        | clrFillColor | 
        COLOR | 
 	[옵션]내부 색상 | 
      
    
    
        | bTransparent | 
        BOOL | 
 	[옵션]내부 투명 여부(기본값:false) | 
      
    
    
        | nLineWidth | 
        short | 
 	[옵션]선 두께 | 
      
    
    
        | nLineStyle | 
        short | 
 	[옵션]선 스타일 | 
      
    
    
        | clrLineColor | 
        COLOR | 
 	[옵션]선 색상 | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | short | 
      아이템 ID | 
    
  
Remark
* 옵션파라미터중 기본값이 명시되어 있지 않은 파라미터는 캔버스에 설정된 속성을 따른다.
  
 
  
Example
function canvas_on_click(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nItemId)
{
	var id = -1;
	var fill_color = factory.rgb(255,255,0);
	// 모서리둥근사각형 그리기
	id = canvas.drawroundrect(nXPoint, nYPoint, 100, 50, 15, 15, fill_color, false, 0);
	if (id >= 0) {
		// 모서리둥근사각형에 텍스트 출력
		canvas.setitemtext(id, "this is roundrect");
	}
}
  
See Also
drawline
drawpolyline
drawrect
drawcircle
drawellipse
drawdiamond
drawtriangle
drawrighttriangle
drawpentagon
drawhexagon
drawheptagon
drawoctagon
drawpolygon
  
Viewer Ver.
9.1.1.1
  
Update Date
 20211115