Adjust Picture Size Ratio – Korean Automation

0 comments

Resizing Images in Hancom Script

I am attempting to load a new picture file and insert it at 30% of it’s original size.

function OnScriptMacro_script40() {
    InsertPicture("c:noname01.emf", 1, 1, 0, 0, 0, 35, 35);
    FindCtrl();
    hc = CurSelectedCtrl; // Check currently selected object
    if (hc.CtrlID == "gso") {
        set = hc.properties;
        subset = set.Item("ShapeDrawImageAttr");
    }
}

Related Posts

Leave a Comment