Android.Graphics.SurfaceTexture.SetDefaultBufferSize Method
Set the default size of the image buffers.

Syntax

[Android.Runtime.Register("setDefaultBufferSize", "(II)V", "GetSetDefaultBufferSize_IIHandler")]
public virtual void SetDefaultBufferSize (int width, int height)

Parameters

width
Documentation for this section has not yet been entered.
height
Documentation for this section has not yet been entered.

Remarks

Set the default size of the image buffers. The image producer may override the buffer size, in which case the producer-set buffer size will be used, not the default size set by this method. Both video and camera based image producers do override the size. This method may be used to set the image size when producing images with Android.Graphics.Canvas (via Android.Views.Surface.LockCanvas(Rect)), or OpenGL ES (via an EGLSurface). The new default buffer size will take effect the next time the image producer requests a buffer to fill. For Android.Graphics.Canvas this will be the next time Android.Views.Surface.LockCanvas(Rect) is called. For OpenGL ES, the EGLSurface should be destroyed (via eglDestroySurface), made not-current (via eglMakeCurrent), and then recreated (via eglCreateWindowSurface) to ensure that the new default size has taken effect. The width and height parameters must be no greater than the minimum of GL_MAX_VIEWPORT_DIMS and GL_MAX_TEXTURE_SIZE (see Javax.Microedition.Khronos.Opengles.GL10.glGetIntegerv(int, int[], int)). An error due to invalid dimensions might not be reported until updateTexImage() is called.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 15