UG NX 二次开发 转档图片
BOOL ExportImage(CStringcsImgPath,
ImgType eImgType/* = IMGTYPE_JPG */)
{
UF_DISP_image_format_e eImgFormat= UF_DISP_JPEG;
if (eImgType == IMGTYPE_JPG)
eImgFormat = UF_DISP_JPEG;
if (eImgType == IMGTYPE_PNG)
eImgFormat = UF_DISP_PNG;
USES_CONVERSION;
UF_DISP_create_image(W2A(csImgPath),eImgFormat, UF_DISP_ORIGINAL);
return TRUE;
}
MCADEx专注MCAD二次开发
QQ: prodevelop@qq.com