Sr.No | Method & description |
---|---|
1 | getSurfaceTexture() This method returns the SurfaceTexture used by this view. |
2 | getBitmap(int width, int height) This method returns Returns a Bitmap representation of the content of the associated surface texture. |
3 | getTransform(Matrix transform) This method returns the transform associated with this texture view. |
4 | isOpaque() This method indicates whether this View is opaque. |
5 | lockCanvas() This method start editing the pixels in the surface |
6 | setOpaque(boolean opaque) Winnie the witch pc game. This method indicates whether the content of this TextureView is opaque. |
7 | setTransform(Matrix transform) This method sets the transform to associate with this texture view. |
8 | unlockCanvasAndPost(Canvas canvas) This method finish editing pixels in the surface. |
Steps | Description |
---|---|
1 | You will use android studio IDE to create an Android application and name it as TextureView under a package com.example.textureview. |
2 | Modify src/MainActivity.java file to add Activity code. |
3 | Modify layout XML file res/layout/activity_main.xml add any GUI component if required. |
5 | Run the application and choose a running android device and install the application on it and verify the results. |