Extending the Bitmap Class in Android? -


Is there a way to extend the bitmap class in Android? I think you can not do this, but I would like to create a class for a bitmap that represents a falling object (an indefinite number of this object will fall from the top of the screen, and each one has to do something Like detection of conflicts) Can I expand / implement bitmap classes to create this custom class?

A Bitmap also does not know where it should be placed on the screen.

Before coming into the animation, it seems that you need to represent your view by using some "visual object" objects or some other models that represent objects with coordinates in your scene You can. Each of these objects will be in the form of a bitmap one variable.

Once this step is completed, then animating your objects can expand your "SceneObject" class with added functionality. / P>

Your rendering function will explain your visual and layout bitmap according to the information of your models.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -