Example usage for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_NEAREST

List of usage examples for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_NEAREST

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_NEAREST.

Prototype

int GDX2D_SCALE_NEAREST

To view the source code for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_NEAREST.

Click Source Link

Usage

From source file:com.md.crypto.PixmapCrypto.java

License:Apache License

/**
 * Sets the type of interpolation {@link Filter} to be used in conjunction
 * with//from ww w  .  j a v  a  2s. c o  m
 * {@link Pixmap#drawPixmap(Pixmap, int, int, int, int, int, int, int, int)}
 * .
 * 
 * @param filter
 *            the filter.
 */
public static void setFilter(Filter filter) {
    Gdx2DPixmap.setScale(filter == Filter.NearestNeighbour ? Gdx2DPixmap.GDX2D_SCALE_NEAREST
            : Gdx2DPixmap.GDX2D_SCALE_LINEAR);
}