Android graphics - porting from existing AWT application -



Android graphics - porting from existing AWT application -

i porting existing awt application android. application makes utilize of next code:

graphics g = getgraphics();

how translate current canvas?

also, lot of code goes on following:

fontmetrics fm = g.getfontmetrics();

what existing classes within android can use? current class extends surfaceview if helps.

thanks in advance

for fontmetrics, you'll want check out paint.fontmetrics.

as getgraphics(), i'm not sure is. briefly reading method description, believe similar getcontext() in android.

i'm not familiar android many people around here, if i'm mistaken, sense free right me.

android awt android-canvas

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -