Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • You need to know the dimensions of the image, then it's easy as well - just minus 4*size and plus 4*size respectively. Commented Aug 30, 2017 at 21:39
  • @Bergi Yes, image dimensions are easy to retrieve through image.width and image.height as I am using Image() constructor. Commented Aug 30, 2017 at 22:38