android - how to make border around an image - libgdx? -


I have a large image, then I cut it into 9 equal small images. This is my code

  image pricer [] [] = new image [3] [3]; For (Int i = 0; I   

Now, I want to create a border for those images, which I keep in small peace.

You can use a size renderer:

  Render Renderer = New Size Renderer (); Renderer.begin (shape type line) renderer .setting (color); Renderer.rect (image.getImageX (), image.getImageY (), image.getImageWidth (), image.getImageHeight); Renderer.end ();  

Comments