Draw one bitmap to another

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Draw one bitmap to another

Postby Redwid » Fri Dec 07, 2007 2:48 pm

Hi!

Can anybody advise me?

I have to draw one bitmap to another. Like in MIDP: getGraphics.drawImage().
Is there any suggestion without get bitmap.getPixels() and bitmap.setPixels()?

Thx,
Redwid
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 07, 2007 2:40 pm

Top

Postby plusminus » Fri Dec 07, 2007 7:12 pm

Hello RedWid,

what about the following :?:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         Canvas c = new Canvas();
  2.  
  3.         c.setDevice(bitmapResult); // drawXY will result on that Bitmap
  4.  
  5.         c.drawBitmap(bitmapA, left, top, paint);
  6.  
  7.         c.drawBitmap(bitmapB, left, top, paint);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


let us know if it was useful :)

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Redwid » Mon Dec 10, 2007 10:10 am

O, tnx!
It works!
Redwid
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 07, 2007 2:40 pm

Top

Return to General

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest