List of usage examples for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_LINEAR
int GDX2D_SCALE_LINEAR
To view the source code for com.badlogic.gdx.graphics.g2d Gdx2DPixmap GDX2D_SCALE_LINEAR.
Click Source Link
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 w w w . j av a 2 s. 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); }