怎么设置图片的透明度?
MxDraw网页开发|黄洪辉|2018-05-07 09:58
-
回答:
var sImageFile1 = mxOcx.GetOcxAppPath() + "\\mxcad.jpg"; var lId = mxOcx.DrawImageMark(0, 0, 1, 0, sImageFile1, "", true); // 设置图片的透明度 var imageMark=mxOcx.ObjectIdToObject(lId); var param = mxOcx.NewResbuf(); param.AddLong(50); imageMark.SetProp("setTransparent",param); mxOcx.ZoomAll(); mxOcx.UpdateDisplay();