jimp icon indicating copy to clipboard operation
jimp copied to clipboard

how to do with the offSet for image?

Open exe19890522 opened this issue 1 year ago • 0 comments

i splite a big.png to some small pngs like:s1.png s2.png. a json file give the image's argumes like this: "shape11001_11001.png": { "x": 1498, "y": 2, "w": 138, "h": 154, "offX": -9, "offY": 66, "sourceW": 800, "sourceH": 800 } it means the sprite in a full image is not ALIGN_CENTER,it must need have some offset in new image. but i don't know how to get this.

exe19890522 avatar Aug 15 '22 15:08 exe19890522