(Color color, Color out, int w, int h)
| 2116 | |
| 2117 | // 创建钜形线条Drawable |
| 2118 | public Drawable getRectLineDrawable(Color color, Color out, int w, int h) { |
| 2119 | Pixmap pixmap = new Pixmap(w, h, Format.RGBA8888); |
| 2120 | pixmap.setColor(color); |
| 2121 | pixmap.fill(); |
| 2122 | pixmap.setColor(out); |
| 2123 | pixmap.drawRectangle(0, 0, w, h); |
| 2124 | Texture colorPoint = new Texture(pixmap); |
| 2125 | colorPoint.setFilter(filter, filter); |
| 2126 | pixmap.dispose(); |
| 2127 | NinePatchDrawable nine = new NinePatchDrawable(new NinePatch(colorPoint, 2, 2, 2, 2)); |
| 2128 | return nine; |
| 2129 | } |
| 2130 | |
| 2131 | /** |
| 2132 | * 创建输入框 |
no test coverage detected