Canvas function getMaximumBitmapWidth and getMaximumBitmapHeight

How the methods work Canvas

, getMaximumBitmapWidth()

and getMaximumBitmapHeight()

.

These methods are non-static and seem to return a static final value according to this

Why make methods non-static if values ​​don't change with the instance?

+3


source to share


1 answer


This is probably due to the fact that in the internal systems of the system, there are different types of Canvas, for example, software and hardware acceleration. On a hardware accelerated level, the texture size limitation comes from hardware, which can be derived from GL_MAX_TEXTURE_SIZE.



Until,

0


source







All Articles