How set blackground of bitmap? I use so:
mBitmap = Bitmap.createBitmap(x, y, Bitmap.Config.ARGB_8888);
mCanvas = new Canvas(mBitmap);
@Override
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);
}
On Monday, April 2, 2012 12:54:47 PM UTC-3, Perry168 wrote:
>
> hi,
>
> I used following method to create a canvas.
>
> temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_4444);
> Canvas thisCanvas = new Canvas(temp);
>
> I don't know why the canvas has a black background. How to create a
> Transparent background for use?
>
> Thanks a lot!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en