Search in sources :

Example 6 with FilterBilinear

use of com.b3dgs.lionengine.graphic.filter.FilterBilinear in project lionengine by b3dgs.

the class SpriteTest method testFilterBilinear.

/**
 * Test filter bilinear.
 */
@Test
void testFilterBilinear() {
    final Sprite sprite = new SpriteImpl(Graphics.createImageBuffer(64, 32));
    sprite.filter(new FilterBilinear());
    assertEquals(64, sprite.getWidth());
    assertEquals(32, sprite.getHeight());
}
Also used : FilterBilinear(com.b3dgs.lionengine.graphic.filter.FilterBilinear) Test(org.junit.jupiter.api.Test)

Aggregations

FilterBilinear (com.b3dgs.lionengine.graphic.filter.FilterBilinear)6 Test (org.junit.jupiter.api.Test)6 Config (com.b3dgs.lionengine.Config)1 Resolution (com.b3dgs.lionengine.Resolution)1