use of com.b3dgs.lionengine.graphic.FactoryGraphicTest in project lionengine by b3dgs.
the class FactoryGraphicAwtTest method testRotate.
/*
* FactoryGraphicTest
*/
/**
* Test rotate.
*/
@Test
@Override
public void testRotate() {
final ImageBuffer rotate = Graphics.rotate(image, 90);
Assert.assertNotEquals(image, rotate);
Assert.assertEquals(image.getWidth(), rotate.getHeight());
Assert.assertEquals(image.getHeight(), rotate.getWidth());
rotate.dispose();
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicTest in project lionengine by b3dgs.
the class FactoryGraphicHeadlessTest method testRotate.
/*
* FactoryGraphicTest
*/
/**
* Test rotate.
*/
@Test
@Override
protected void testRotate() {
final ImageBuffer image = Graphics.getImageBuffer(Medias.create("image.png"));
final ImageBuffer rotate = Graphics.rotate(image, 90);
assertNotEquals(image, rotate);
assertEquals(image.getWidth(), rotate.getHeight());
assertEquals(image.getHeight(), rotate.getWidth());
rotate.dispose();
image.dispose();
}
use of com.b3dgs.lionengine.graphic.FactoryGraphicTest in project lionengine by b3dgs.
the class FactoryGraphicAwtTest method testRotate.
/*
* FactoryGraphicTest
*/
@Test
@Override
protected void testRotate() {
final ImageBuffer image = Graphics.getImageBuffer(Medias.create("image.png"));
final ImageBuffer rotate = Graphics.rotate(image, 90);
assertNotEquals(image, rotate);
assertEquals(image.getWidth(), rotate.getHeight());
assertEquals(image.getHeight(), rotate.getWidth());
rotate.dispose();
image.dispose();
}
Aggregations