Textural feature extraction of image is a basic work for image analysis. A number of approaches have been put forward to describe texture features quantitatively, such as gray level co-occurrence matrix, fractal wavelet, Gabor wavelet and local binary pattern etc, among them texture feature extracted based on "tuned" mask will not suffer from rotation and scale of images. However, it needs to take a lot of time to learn the tuned mask with the traditional methods and could not acquire the satisfying mask sometimes. In essence, it is a very hard combinational optimization problem and easy to fall into the local optimum with mountain climbing method. Bat algorithm is a newly proposed meta-heuristic optimization, which is employed to tune the optimal mask in the paper. The procedure of bat algorithm to learn the tuned mask is detailed. Experiments results testifies that the proposed method is propitious to draw texture features, its performance is better than the simple particle swarm optimization and genetic algorithm based mask tuning scheme, which is a robust approach for texture image analysis.