Generate a PNG pixel by pixel then save it?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Generate a PNG pixel by pixel then save it?

Postby Jorenm » Sun Jan 10, 2010 8:40 am

How can I do this?
Jorenm
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Nov 28, 2009 9:16 am

Top

Postby forsan » Sun Jan 10, 2010 3:39 pm

forsan
Freshman
Freshman
 
Posts: 9
Joined: Wed Jan 06, 2010 2:36 pm

Postby Jorenm » Mon Jan 11, 2010 12:15 am

Does this all apply to android?
Jorenm
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Nov 28, 2009 9:16 am

Postby forsan » Mon Jan 11, 2010 12:22 am

well im pretty new with android so i cant say to a 100% but java is still java even if you run it on an android phone. Just read those 2 links and try.
forsan
Freshman
Freshman
 
Posts: 9
Joined: Wed Jan 06, 2010 2:36 pm

Re: Generate a PNG pixel by pixel then save it?

Postby pskink » Mon Jan 11, 2010 12:33 pm

Jorenm wrote:How can I do this?


pseudo-code:

Bitmap b = Bitmap.createBitmap(w, h, type)
Canvas c = new Canvas(b)

c.drawSomething()

b.compress(...)

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests