-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi, I try a svg file at https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_path, and found different render result with gdiplus ports
I tried add StartFigure
at MoveTo
and works ok
void GDIPlusSVGPath::MoveTo(float x, float y)
{
mPath.StartFigure(); // add StartFigure at here
mCurrentX = x;
mCurrentY = y;
}
svg file:
<svg t="1657821631945" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2227" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256"><defs><style type="text/css"></style></defs><path d="M671.1296 761.7024c-21.5552 0.6144-43.3152 1.024-42.3936 24.0128 0.1024 0.9728 0.6656 3.072 3.0208 4.5568 11.6224 5.8368 28.1088-1.536 35.5328-7.4752l3.9424-21.0944C671.232 761.7024 671.1808 761.7536 671.1296 761.7024L671.1296 761.7024z" p-id="2228" fill="#1296db"></path><path d="M538.7776 673.4848l-11.52 49.8688C575.5392 736.1536 599.7056 664.4224 538.7776 673.4848" p-id="2229" fill="#1296db"></path><path d="M473.5488 426.0352c6.144-60.0576-25.7536-99.1744-84.3264-90.1632-61.7984 9.472-112.64 79.7184-109.3632 147.712 1.6896 36.096 25.6 68.9152 65.1776 70.9632C414.0032 558.08 467.2 488.3456 473.5488 426.0352" p-id="2230" fill="#1296db"></path><path d="M961.28 219.2384 64.768 219.2384c-27.5456 0-49.8688 22.3232-49.8688 49.8176L14.8992 833.536c0 27.5456 22.3232 49.8176 49.8688 49.8176l896.5632 0c27.4944 0 49.7664-22.272 49.7664-49.8176L1011.0976 269.0048C1011.0464 241.5104 988.7744 219.2384 961.28 219.2384M826.5728 504.6784c-1.1264 8.448-6.9632 12.2368-9.6256 19.2-67.8912-34.304-96.512 93.3376-13.4656 63.3344 1.28 5.12 0.8192 11.9808 3.8912 15.3088-28.3648 17.408-79.0016 11.52-90.2144-13.4144C693.248 535.552 765.184 478.72 826.5728 504.6784M703.744 285.952c47.4112 36.2496 52.5824 150.2208 11.52 197.5808-12.9536-4.9152-21.7088-14.1312-32.5632-21.1456 31.5392-33.9456 29.7984-121.4976-5.7856-149.6064C683.6736 301.6704 695.9616 296.0896 703.744 285.952M676.864 500.992c0-0.0512 0.0512-0.1024 0.0512-0.1024l32.6656 0c-0.0512 0-0.0512 0.0512-0.0512 0.1024l1.536 0-25.1392 111.8208-35.4816 0 6.2976-26.88c4.5056-21.76 9.6768-42.8544 14.9504-63.9488l4.9152-21.0432L676.864 500.9408zM651.9296 335.872c28.1088 18.2272 29.3376 82.944 7.7312 109.3632-8.0896-2.1504-12.4928-8.0384-19.2-11.52 18.176-18.0736 17.0496-66.1504-1.9456-82.4832C639.1296 342.2208 649.984 343.3984 651.9296 335.872M619.3664 364.6464c14.4896 7.5264 14.592 41.5744 5.7344 55.6544-5.7856 0.0512-7.424-4.0448-11.52-5.7344 7.7312-13.2096 5.6832-30.464-1.8944-42.24C615.1168 370.5856 617.6256 368.0256 619.3664 364.6464M577.3312 502.1184l-0.1024 0.4608c-0.6144 3.4816-1.3312 7.0656-2.2016 10.6496l-12.9536 62.1568c-0.0512 0.6144-0.0512 1.2288-0.0512 1.8432 0.2048 2.816 1.28 8.448 7.4752 10.3936 8.5504 2.1504 18.7392-2.6112 25.9584-7.0656l18.5856-79.4624 34.5088 0-25.1392 111.8208-35.4816 0 2.7648-11.8272c-13.2096 10.4448-40.6528 14.8992-55.296 7.424-9.3184-4.7616-11.4176-12.8-10.496-22.6816-0.1024 0-0.2048 0-0.2048 0l0.512-2.4576c0.4608-3.3792 1.2288-6.9632 2.1504-10.6496l14.4384-71.5776 1.28 0 0 0 34.5088 0C577.4848 501.3504 577.4336 501.7088 577.3312 502.1184L577.3312 502.1184zM116.6848 650.6496l22.7328 32-18.8416 10.0352L98.816 659.968 116.6848 650.6496zM64.9728 813.568c1.8432-8.5504 3.7376-16.9984 5.7344-25.3952l21.1456-93.5936 22.9888 0L88.0128 813.568 64.9728 813.568zM162.816 750.2336c-18.2784 14.8992-31.232 30.1056-53.7088 38.4l-7.0656-15.6672c1.6384-0.4608 25.5488-17.408 33.9968-25.6512 13.568-13.2096 28.8256-33.9456 32.512-50.8416l23.04 5.7344c-3.7888 12.1856-10.0864 21.9648-17.3056 30.72 7.424 13.1584 36.3008 38.5536 36.3008 38.5536l-15.2064 13.2096C180.224 771.7888 174.7968 760.6272 162.816 750.2336M262.7072 678.4512c-0.8192 3.584-1.6896 7.3728-2.6624 11.3152L241.664 768.512c-1.0752 5.2224-2.1504 10.24-3.4816 14.9504L238.08 783.5648c-6.2464 21.8112-17.92 36.7616-52.2752 31.8976l-3.84-19.2c7.0144-0.6656 16.2816 0.9728 22.6304-0.3072 4.864-1.28 6.8096-7.2192 7.1168-8.4992l19.8144-74.4448c1.5872-6.7584 3.328-13.4656 5.2736-19.8144l1.3824-5.2736c-2.6624-0.3584-6.144 0.0512-8.9088-0.2048l-83.456 0 5.4784-20.3776L243.712 667.3408l20.736 0 0.8704 0L262.7072 678.4512zM314.1632 796.3136c-1.1776 5.8368-2.4064 11.6224-3.6352 17.2544L287.488 813.568c7.2704-29.184 13.312-59.648 21.0944-88.2688-8.5504 5.5808-12.1344 8.1408-24.4224 12.9536l-5.3248-12.5952c-0.3072-0.7168-0.6656-1.4848-0.9728-2.304 27.4432-19.6096 49.7152-39.8336 65.1776-69.0688l19.2 5.7856c-18.1248 19.456-28.3136 47.7184-35.8912 78.1312L314.1632 796.3136zM354.6112 730.0608l19.8144-4.1472 18.5856 47.104-20.8384 4.5568L354.6112 730.0608zM450.56 712.0896l-13.3632 59.5456c-0.1536 0.8704-0.3584 1.6896-0.6144 2.56l-0.256 1.1264 0-0.0512c-7.4752 35.2256-12.4928 42.1888-45.7216 41.216l0.0512 0.1024L379.7504 816.128l-0.1536-0.7168 0 0c0 0 0-0.0512 0-0.1024l-5.4272-19.3536 9.8816 0c0.6144 0 1.28 0 1.9456 0l0.4096 0 0 0 11.3152 0c0 0 7.8336-0.512 9.472-5.0688 1.4848-4.3008 4.8128-14.6944 5.4272-16.9472l14.4384-64.1024L347.5456 709.8368l6.2464-18.8928c0 0 74.0864-0.0512 77.5168-0.2048l8.7552-35.072C362.8032 605.696 222.4128 610.2016 210.7392 502.784 197.2736 378.5728 319.6928 278.272 437.1456 287.9488c49.664 4.096 98.9184 38.912 105.5232 92.0576 13.1584 106.5984-63.232 177.7152-138.1376 205.2608 21.4528 8.6528 45.2096 14.8992 69.0688 21.0944-4.6592 28.5696-12.8512 53.6576-17.2032 82.4832 1.1776 1.3312 3.1744 1.9456 5.4784 2.0992l19.3536 0-6.2464 18.8928L451.5328 709.8368C451.1744 710.6048 450.816 711.3216 450.56 712.0896M524.1344 746.5472 508.3648 813.568 507.5968 813.568 495.2064 813.568l-23.552 0c14.592-56.4224 24.7808-108.2368 36.4544-163.072 39.6288 1.9968 83.6608-6.8608 99.7376 15.36C637.4912 706.7136 577.3312 756.0192 524.1344 746.5472M696.1152 811.6224c-10.752-3.2768-35.84 7.7312-34.56-7.6288-15.9744 9.8304-50.944 15.872-61.3376 0-21.8624-33.1264 31.5392-66.9184 74.8032-59.4944 11.008-32.3072-31.0784-21.248-49.92-17.2544 1.4848-7.2192-2.3552-9.1648-1.8944-15.36 24.7808-10.1376 80.2304-22.3232 88.2688 7.68C719.4112 749.4144 690.2272 775.5264 696.1152 811.6224M715.264 805.8368c1.0752-9.8304 9.5232-12.288 11.5712-21.0944 11.9296 6.0928 40.1408 17.4592 47.9744 0-9.7792-20.0192-37.6832-16.5888-40.2944-40.2944-4.1984-38.4 48.0256-53.76 84.4288-36.4544-3.072 7.2192-9.1136 11.3664-11.52 19.2-9.984-4.5056-34.6624-11.4176-40.3456 1.9456 8.6016 20.8896 36.6592 15.872 40.3456 38.3488C814.0288 808.7552 752.6912 824.7808 715.264 805.8368M907.1616 767.488c6.7072 40.96-54.9376 57.4976-92.16 38.3488 2.4064-8.448 8.9088-12.8512 11.5712-21.0944 11.9296 6.6048 40.0384 16.64 47.9744 0-9.5744-20.3776-37.6832-16.3328-40.2944-40.2944-4.096-38.2464 48.0256-53.9648 84.3776-36.4544-2.9696 7.2704-8.4992 11.9296-11.4688 19.2-9.6256-4.1472-37.7856-13.0048-40.3456 3.84C877.5168 748.9024 903.5776 746.0864 907.1616 767.488M935.8848 610.2016l-40.2944 0-28.4672-51.2512-12.4928 53.8624L819.2 612.8128l6.2976-26.88c4.5056-21.76 9.6256-42.8544 14.848-63.9488l20.736-85.9648 34.5088 0L871.936 538.112l50.0224-40.9088 39.1168 0-61.5936 49.664L935.8848 610.2016z" p-id="2231" fill="#1296db"></path></svg>
Metadata
Metadata
Assignees
Labels
No labels