android Programming Glossary: msurfaceholder.lockcanvas
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask p new Paint String fps while mRun if surfaceDone try c mSurfaceHolder.lockCanvas synchronized mSurfaceHolder try bm mIn.readMjpegFrame ..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg new Paint String fps while mRun if surfaceDone try c mSurfaceHolder.lockCanvas synchronized mSurfaceHolder try bm mIn.readMjpegFrame ..
Android: Tiling a Bitmap on a Canvas http://stackoverflow.com/questions/4838776/android-tiling-a-bitmap-on-a-canvas to a Bitmap... it loses the tiling properties. canvas mSurfaceHolder.lockCanvas null BitmapDrawable TileMe new BitmapDrawable BitmapFactory.decodeResource..
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView? http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin doDraw public void run while mRun Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame..
Cardio graph for android http://stackoverflow.com/questions/6041190/cardio-graph-for-android public void run while running Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder doDraw c finally if c..
SurfaceHolder.lockCanvas() Returning null http://stackoverflow.com/questions/6921412/surfaceholder-lockcanvas-returning-null public void run while running Canvas c null try c mSurfaceHolder.lockCanvas Use canvas finally To try to fix some problems I've been.. public void doStart public void run Canvas c null try c mSurfaceHolder.lockCanvas Use canvas finally Except when I do that lockCanvas always..
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask bm int width int height Rect destRect Canvas c null Paint p new Paint String fps while mRun if surfaceDone try c mSurfaceHolder.lockCanvas synchronized mSurfaceHolder try bm mIn.readMjpegFrame destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg bm int width int height Rect destRect Canvas c null Paint p new Paint String fps while mRun if surfaceDone try c mSurfaceHolder.lockCanvas synchronized mSurfaceHolder try bm mIn.readMjpegFrame destRect destRect bm.getWidth bm.getHeight c.drawColor Color.BLACK..
Android: Tiling a Bitmap on a Canvas http://stackoverflow.com/questions/4838776/android-tiling-a-bitmap-on-a-canvas but the issue I believe is when the BitmapDrawable is converted to a Bitmap... it loses the tiling properties. canvas mSurfaceHolder.lockCanvas null BitmapDrawable TileMe new BitmapDrawable BitmapFactory.decodeResource getResources R.drawable.editor_graph TileMe.setTileModeX..
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView? http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin would like to hear that answer... This is the routine that calls doDraw public void run while mRun Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost..
Cardio graph for android http://stackoverflow.com/questions/6041190/cardio-graph-for-android a simplified version class DrawingThread extends Thread @Override public void run while running Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost c synchronized this..
SurfaceHolder.lockCanvas() Returning null http://stackoverflow.com/questions/6921412/surfaceholder-lockcanvas-returning-null . class GameThread extends Thread public void doStart public void run while running Canvas c null try c mSurfaceHolder.lockCanvas Use canvas finally To try to fix some problems I've been running into I tried to put more control in the hands of GameActivity.. gameThread.run . class GameThread extends Thread public void doStart public void run Canvas c null try c mSurfaceHolder.lockCanvas Use canvas finally Except when I do that lockCanvas always returns null and thus I can't draw anything to the screen...
|