You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Mika

27.3

Ohjelmoin ytimeen luokan (class), jolla voidaan piirtää kuvia sprite sheetiltä Androidin canvakselle. Tämä teoriassa siis, testaaminen jäi seuraavalle päivälle :'(.
Lähteet:

1. http://developer.android.com/reference/android/graphics/Canvas.html#drawBitmap%28android.graphics.Bitmap,%20android.graphics.Rect,%20android.graphics.Rect,%20android.graphics.Paint%29
2. http://stackoverflow.com/questions/3473151/what-are-the-pros-and-cons-of-a-sprite-sheet-compared-to-an-image-sequence
3. http://stackoverflow.com/questions/7341017/spritesheet-programmatically-cutting-best-practices
4. http://stackoverflow.com/questions/3035692/how-to-convert-a-drawable-to-a-bitmap

  • No labels
You must log in to comment.