문제

Im trying to convert a java program to an android program. So the question is: What is the equivalent of graphics type variable on android. For example "protected Graphics entryGraphics;"

도움이 되었습니까?

해결책

Android has the Canvas class which is essentially the equivalent. For more information please see the official 2D graphics guide.

However Canvas uses the CPU to render the graphics. For GPU rendering and therefore better performance, you may want to check out OpenGL.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top