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

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

Introduction

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

Prototype

public Gdx2DPixmap(int width, int height, int format) throws GdxRuntimeException 

Source Link

Usage

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

License:Apache License

/**
 * Creates a new Pixmap instance with the given width, height and format.
 * /*from  w w w .  j ava  2  s. c  o  m*/
 * @param width
 *            the width in pixels
 * @param height
 *            the height in pixels
 * @param format
 *            the {@link Format}
 */
public PixmapCrypto(int width, int height, Format format) {
    pixmap = new Gdx2DPixmap(width, height, Format.toGdx2DPixmapFormat(format));
    setColor(0, 0, 0, 0);
    fill();
}