ICatchISurfaceContext interface

  1. package com.icatchtek.pancam.customer.surface;
  2. public interface ICatchISurfaceContext {
  3. ...
  4. }

The interface of the surface context.

Public methods

getSurface

  1. android.view.Surface getSurface()

Get the original surface.
Returns:

  • surface.


getSurfaceID

  1. int getSurfaceID()

Get the surface ID.
Returns:

  • The ID of this surface.


setViewPort

  1. boolean setViewPort(int x,
  2. int y,
  3. int width,
  4. int height)
  5. 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.