绛斿: fillpolygon for Ca nvas?

by 瀛欏叾楣 » Wed, 22 Jul 2009 01:25:22 GMT


Sponsored Links
 -----  -----



 monsoon 





<steve...@unimelb.edu.au>
€ 2009018:45
 Android Beginners <android-beginners@googlegroups.com>
: [android-beginners] fillpolygon for Canvas?


It seems a bit odd to me that there is no fillpolygon(...) method in
the Canvas class?

I'm a bit new to graphics on Android, but it seems I must be missing
something here?

I.e. The best I can make out is that I'll have to write my own version
of a fillpolygon (which is a very standard sort of need), using a Path
and moveto and lineto and drawPath???

Am I heading down the right track, or have I missed some 'really
obvious' method that named something entirely different from
fillpolygon but does the same thing?

Thanks in advance for any help:)



[


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. TextView "..." when using multiple lines

I have noticed that when a textview has a fixed width (let's say
fill_parent), if the text you set doesn't fit, android adds
automatically three dots "...". But this happens only when
singleLine=true
How would I accomplish this with a textview that has singleLine=false
and maxLines=4 ?

Thank you

-- 

2. Problem of MediaRecorder setVideoSize( )

Dear all,

I tried to capture video using MediaRecorder, everything works fine
and I got the 3gp file successfully.

However, the resolution is limited ( it seems like 320 x 480 ). I am
using Google nexus one and the built-in recorder could capture much
higher resolution video.

I tried to change the recorder resolution by calling setVideoSize( )
but it doesn't work. I tested it by different parameters, including
640,480,  480, 800, etc.

Did anyone have success in using setVideoSize ?

-- 

3. run-time bytecode generation and Android 2.x

4. SQLite3: not found

5. Getting appWidget position/coordinates on homescreen

6. SOLVED - Eclipse problem with "Project contains errors" and nothing is obviously wrong

7. XPathResult undefined in android browser