public NinePatchDrawable (NinePatch patch) { setPatch(patch); }
public NinePatchDrawable (NinePatch patch) { setPatch(patch); }
public NinePatchDrawable (NinePatch patch) { setPatch(patch); }
public static NinePatchDrawable createNinePatchDrawableFromAtlas(ResolutionHelper resolutionHelper, String imageName, TextureAtlas textureAtlas, int patchOffsetLeft, int patchOffsetRight, int patchOffsetTop, int patchOffsetBottom) { NinePatchDrawable ninePatchDrawable = new NinePatchDrawable(); TextureRegion region = textureAtlas.findRegion(imageName); NinePatch patch = new NinePatch(region, patchOffsetLeft, patchOffsetRight, patchOffsetTop, patchOffsetBottom); patch.scale(resolutionHelper.getSizeMultiplier(), resolutionHelper.getSizeMultiplier()); ninePatchDrawable.setPatch(patch); return ninePatchDrawable; } }
ninePatchDrawable.setPatch(patch); if(imageModel.getMinFilter() != null && imageModel.getMagFilter() != null) { patch.getTexture().setFilter(Texture.TextureFilter.valueOf(imageModel.getMinFilter()), Texture.TextureFilter.valueOf(imageModel.getMagFilter()));