It also works if you put a 1px white border. Doesn't have to be transparent. This may cause issues though if you want to decompile the images again.
Simplest way is to increase your canvas size by 2px vertically and 2px horizontally. This should create a 1px transparent border all the way around. Then make your marks using the pencil tool at 1px size (100% flow + 100% fill) and #000000 colour. Make 100% sure it's at 1px size.
It's wise to keep the 9-patch info on its own layer.
Then, select the whole image (CTRL+A) > modify selection > contract by 1px > hit CTRL+SHIFT+I to select inverse. Then select each layer one by one (except the one with the 9-patch info) and hit the DEL button - just to make sure there's nothing in the border that shouldn't be there.
hth
Simplest way is to increase your canvas size by 2px vertically and 2px horizontally. This should create a 1px transparent border all the way around. Then make your marks using the pencil tool at 1px size (100% flow + 100% fill) and #000000 colour. Make 100% sure it's at 1px size.
It's wise to keep the 9-patch info on its own layer.
Then, select the whole image (CTRL+A) > modify selection > contract by 1px > hit CTRL+SHIFT+I to select inverse. Then select each layer one by one (except the one with the 9-patch info) and hit the DEL button - just to make sure there's nothing in the border that shouldn't be there.
hth
Last edited: