Back to project page Verlet.
The source code is released under:
Copyright 2013 Devicement http://devicement.com/ Copyright 2013 Sub Protocol and other contributors http://subprotocol.com/ Permission is hereby granted, free of charge, to any person obtaining a co...
If you think the Android project Verlet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.verletandroid.Graphics; /*from ww w . jav a2s. c o m*/ import android.graphics.Bitmap; /** * Created with IntelliJ IDEA. * User: George * Date: 28.04.13 * Time: 15:28 * To change this template use File | Settings | File Templates. */ public class Pixmap implements IPixmap { Bitmap bitmap; PixmapFormat format; public Pixmap(Bitmap bitmap, PixmapFormat format) { this.bitmap = bitmap; this.format = format; } @Override public int getWidth() { return bitmap.getWidth(); } @Override public int getHeight() { return bitmap.getHeight(); } @Override public PixmapFormat getFormat() { return format; } @Override public void dispose() { bitmap.recycle(); } }