¡@

Home 

2014/10/16 ¤W¤È 08:16:05

android Programming Glossary: intbuffer

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

4 vbb.order ByteOrder.nativeOrder mVertexBuffer vbb.asIntBuffer mVertexBuffer.put vertices mVertexBuffer.position 0 ByteBuffer.. 36 gl.GL_UNSIGNED_BYTE mIndexBuffer private IntBuffer mVertexBuffer private FloatBuffer mColorBuffer private ByteBuffer..

Blending pixels from Two Bitmaps

http://stackoverflow.com/questions/4605325/blending-pixels-from-two-bitmaps

BitmapFactory.decodeResource getResources R.drawable.blend IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer.. getResources R.drawable.blend IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer.. base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate blend.getWidth blend.getHeight..

photo/image-to-sketch algorithm

http://stackoverflow.com/questions/9826273/photo-image-to-sketch-algorithm

true Bitmap blend layer.copy Config.ARGB_8888 false IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer.. blend layer.copy Config.ARGB_8888 false IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer.. base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate blend.getWidth blend.getHeight..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

3 1 2 ByteBuffer vbb ByteBuffer.allocateDirect vertices.length 4 vbb.order ByteOrder.nativeOrder mVertexBuffer vbb.asIntBuffer mVertexBuffer.put vertices mVertexBuffer.position 0 ByteBuffer cbb ByteBuffer.allocateDirect colors.length 4 cbb.order ByteOrder.nativeOrder.. 4 gl.GL_FIXED 0 mColorBuffer gl.glDrawElements gl.GL_TRIANGLES 36 gl.GL_UNSIGNED_BYTE mIndexBuffer private IntBuffer mVertexBuffer private FloatBuffer mColorBuffer private ByteBuffer mIndexBuffer Well hope somebody finds this useful.....

Blending pixels from Two Bitmaps

http://stackoverflow.com/questions/4605325/blending-pixels-from-two-bitmaps

result base.copy Bitmap.Config.RGB_565 true Bitmap blend BitmapFactory.decodeResource getResources R.drawable.blend IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend.. Bitmap.Config.RGB_565 true Bitmap blend BitmapFactory.decodeResource getResources R.drawable.blend IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate.. IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate blend.getWidth blend.getHeight blend.copyPixelsToBuffer buffBlend buffBlend.rewind IntBuffer..

photo/image-to-sketch algorithm

http://stackoverflow.com/questions/9826273/photo-image-to-sketch-algorithm

source Bitmap layer Bitmap base source.copy Config.ARGB_8888 true Bitmap blend layer.copy Config.ARGB_8888 false IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend.. layer Bitmap base source.copy Config.ARGB_8888 true Bitmap blend layer.copy Config.ARGB_8888 false IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate.. IntBuffer buffBase IntBuffer.allocate base.getWidth base.getHeight base.copyPixelsToBuffer buffBase buffBase.rewind IntBuffer buffBlend IntBuffer.allocate blend.getWidth blend.getHeight blend.copyPixelsToBuffer buffBlend buffBlend.rewind IntBuffer..