ICatchISurfaceContext interface
package com.icatchtek.pancam.customer.surface;public interface ICatchISurfaceContext {...}
The interface of the surface context.
Public methods
getSurface
android.view.Surface getSurface()
Get the original surface.
Returns:
- surface.
getSurfaceID
int getSurfaceID()
Get the surface ID.
Returns:
- The ID of this surface.
setViewPort
boolean setViewPort(int x,int y,int width,int height)throws IchGLSurfaceNotSetException
Set the view port, the SDK will draw panoramic pictures in this region.
Params:
- x - The start x.
- y - The start y.
- width - the with.
- height - the height.
Returns:
- Return true if no error happened, otherwise return false.
Throws:
- IchGLSurfaceNotSetException - The surface not set, the surface context should be set to the SDK first.
