Lines Matching defs:pixmap
23 import com.badlogic.gdx.graphics.Pixmap;
24 import com.badlogic.gdx.graphics.Pixmap.Format;
42 Pixmap pixmap = new Pixmap(new FileHandle(entry.inputFile));
43 if (pixmap.getFormat() != Format.RGB888 && pixmap.getFormat() != Format.RGB565) {
44 System.out.println("Converting from " + pixmap.getFormat() + " to RGB888!");
45 Pixmap tmp = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), Format.RGB888);
46 tmp.drawPixmap(pixmap, 0, 0, 0, 0, pixmap.getWidth(), pixmap.getHeight());
47 pixmap.dispose();
48 pixmap = tmp;
50 ETC1.encodeImagePKM(pixmap).write(new FileHandle(entry.outputFile));
51 pixmap.dispose();