Hmm, doesn't look like you are. Try drawing on the bitmap itself and then set that for the ImageView. See: http://developer.android.com/reference/android/graphics/Canvas.html#Canvas(android.graphics.Bitmap)
On Mon, Jun 27, 2011 at 6:00 PM, New Developer <[email protected]> wrote: > within the function that has the drawline > I first call super.draw() > super.onDraw(canvas); > layers[0] = new BitmapDrawable( mBitmap ); > //canvas.save(); > mPaint.setColor(Color.BLUE); > canvas.drawLine(pointA.x, pointA.y, pointB.x, pointB.y, mPaint); > canvas.drawText( result, ((newline.getDistance() * line.PX_TO_MM) / 3.0f), > -6.0f, mPaint); > //canvas.restore(); > super.setImageDrawable(layers[0]); > > So I "Think" I am drawing first is there anyway to check or verify this ?? > Thanks again > > > On Jun 27, 2011, at 4:03 PM, Miguel Morales wrote: > > Make sure you are drawing your line after you draw your image > > On Mon, Jun 27, 2011 at 12:57 PM, New Developer <[email protected]> wrote: > > I'm using the following type of code to do panning and zooming on my own > > extension of an ImageView > > setBackgroundColor(Color.BLACK); > > matrix.postScale(newfactor , newfactor , mid.x , mid.y); > > setImageMatrix(matrix); > > Now I want to be able to draw lines on top of this image = = matrix > > currently I'm using > > mPaint.setColor(Color.BLUE); > > canvas.drawLine(pointA.x, pointA.y, pointB.x, pointB.y, mPaint); > > However this won't show up, > > so my question is How can I draw a line to the matrix variable used for > > zooming and panning ? > > Also I'm looking for tutorials on LayerDrawable if you know of any > > Thanks in advance > > > > > -- > > 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 > > > > -- > ~ Jeremiah:9:23-24 > Android 2D MMORPG: > http://solrpg.com/, http://www.youtube.com/user/revoltingx > > -- > 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 > > -- > 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- 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

