안녕하세요~
그림 여러개를 가져오기 할때 외곽선을 줄려고 하는데요.
그림 한개가져오고 외곽선 주고 한개 가져오고 고치기해서 외곽선 주고 하니까 많이 느린데
미리 그림 속성값을정의해놓고 가져오면 속성값 고치는 시간이 줄어들거 같은데 방법이 있을까요?
아래 코드는 그림을 한개씩 가져오고 고치기해서 외곽선 설정하는 c# 코드 입니다.
foreach (string filename in filenames_ar)
{
if (ESC_Press) { break; }
Debug.WriteLine($"{filename}");
hwp.InsertPicture(filename, true, 1, false, false, 0, Hu2mm(width), (Hu2mm(height) / 2) - 5); // 간격 5mm크기로
// 이미지 외곽선 주기
hwp.FindCtrl();
hwp.HAction.GetDefault("ShapeObjDialog", hwp.HParameterSet.HShapeObject.HSet);
hwp.HParameterSet.HShapeObject.ShapeDrawLineAttr.HeadFill = 1;
hwp.HParameterSet.HShapeObject.ShapeDrawLineAttr.TailFill = 1;
hwp.HParameterSet.HShapeObject.ShapeDrawLineAttr.Width = hwp.MiliToHwpUnit(0.3);
hwp.HParameterSet.HShapeObject.ShapeDrawLineAttr.Style = hwp.HwpLineType("Solid");
hwp.HParameterSet.HShapeObject.HorzRelTo = hwp.HorzRel("Para");
hwp.HParameterSet.HShapeObject.HSet.SetItem("ShapeType", 1);
hwp.HAction.Execute("ShapeObjDialog", hwp.HParameterSet.HShapeObject.HSet);
// hwp.insertPicture(파일명, 포함, 사이즈옵션(1:mm), 뒤집기, 워터마크, 효과, 가로크기, 세로크기);
hwp.Run("Cancel");
hwp.Run("MoveLineEnd");
}