Fabioxps Posted October 4, 2021 Share Posted October 4, 2021 Quote -- This could also be a file, with the path provided to svgCreate local rawSvgData = [[ <svg xmlns="http://www.w3.org/2000/svg" aria-label="Apple" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#555"/><path fill="#f2f2f2" d="M410 334s-10 29-30 59c-5 9-29 43-58 43-21 0-35-15-62-15-33 0-46 15-67 15-11 1-22-5-34-16-77-73-81-181-52-225 18-29 48-47 81-48 26 0 54 17 65 17 8 0 50-20 74-18 33 3 56 15 73 38-49 24-66 117 10 150zM329 56c8 32-27 93-79 90-3-43 34-87 79-90z"/></svg> ]] local svg function init() -- Create an SVG containing a circle, using the raw XML data above svg = svgCreate(212, 212, rawSvgData, function(didLoad) if (not didLoad) then -- SVG failed to load, so don't continue return end addEventHandler("onClientRender", root, render) end) end addEventHandler("onClientResourceStart", resourceRoot, init) function render() local h = 0 dxDrawImageSection(50, 150, 212, 212, 0, 100, 212, 212, svg, 0,0,0, tocolor(255,255,255,255)) end i'm trying to crop a top-down image but this error is happening https://ibb.co/Zg1y0hv image<< from mta Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now