[android-developers] Re: weird drawing on bitmap to canvas

2009-06-24 Thread sleith
hello...could anyone help? thx On Jun 23, 10:37 pm, sleith wrote: > hi, i'm trying to draw bitmap in canvas. > the bitmap is used to draw text and background using canvas (named > canvasBitmap) > but the text or background that are drown to bitmap is not displayed, > as if it's out of bounds. >

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-24 Thread MrChaz
setTextSize() and setStyle() need to be called on the Paint object I think. On Jun 23, 4:37 pm, sleith wrote: > hi, i'm trying to draw bitmap in canvas. > the bitmap is used to draw text and background using canvas (named > canvasBitmap) > but the text or background that are drown to bitmap is n

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-24 Thread sleith
thx for reply did u mean font's paint? i believe it's not that the font is cannot be drawn. i think it's the position of the position 0,0 of the bitmap is not really 0,0 (it's out of bounds) because when i move the position of bitmap (bitmap.translate) with some x and y, i could see the text and t

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-25 Thread Nightwolf
Try using the following: Rect bounds = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), bounds); mCanvasBitmap.drawText(mText, 0, bounds.height(), mFontPaint); On Jun 25, 1:20 am, sleith wrote: > thx for reply > did u mean font's paint? > i believe it's not that the font is cannot