Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i have issue when addImage #169

Open
baonguyentuan opened this issue Mar 19, 2024 · 0 comments
Open

i have issue when addImage #169

baonguyentuan opened this issue Mar 19, 2024 · 0 comments

Comments

@baonguyentuan
Copy link

baonguyentuan commented Mar 19, 2024

i add many image to cad but when i save to dwg or restart my computer file cad receive only last image. If I open the dxf file immediately it still receive all image
imgRegion.forEach((img, index) => {
let ordinateBotLeft = convertWgs84ToVn2000([
img.pointCenter[0] - dx / 2,
img.pointCenter[1] - dy / 2,
0,
]);
let ordinateTopRight = convertWgs84ToVn2000([
img.pointCenter[0] + dx / 2,
img.pointCenter[1] + dy / 2,
0,
]);
dxf.addImage(
"..\" + img.name + ".png",
img.name,
point3d(ordinateBotLeft[1], ordinateBotLeft[0]),
sizeMap[0],
sizeMap[1],
Math.abs(ordinateBotLeft[1] - ordinateTopRight[1]),
0
);
});

@baonguyentuan baonguyentuan changed the title i have issua when addImage i have issue when addImage Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant