我的项目有问题,我正在尝试将JPG文件导入另一个DXF文件,“复制/粘贴”效果很好。
但是当我尝试使用Vector2()
移动它并且y位置高于 488 时,我的jpg文件内部消失了,只有代表我文件大小的框架显示。
我正在使用的方法:
private void DrawMasterPact(int absysX, int absysY, Colonne cellule, string posZone) {
ImageDefinition imageDefinition = new ImageDefinition(@"C:\Users\Apierre\Pictures\Image.jpg", "MTZ2 40 débrochables");
netDxf.Entities.Image image2 = new netDxf.Entities.Image(imageDefinition, new Vector2(absysX + 125, 488), 441, 439) {
Layer = layerUF
};
dxf.AddEntity(image2);
dxf.Save(fileName);
}