import{B as d,T as h}from"./sprite-view-Br3916N3.js";const m=new d;function c(a,r,u,o,s=!1){const t=m;t.minX=0,t.minY=0,t.maxX=a.width/o|0,t.maxY=a.height/o|0;const e=h.getOptimalTexture(t.width,t.height,o,!1,s);return e.source.uploadMethodId="image",e.source.resource=a,e.source.alphaMode="premultiply-alpha-on-upload",e.frame.width=r/o,e.frame.height=u/o,e.source.emit("update",e.source),e.updateUvs(),e}export{c as g};
