Epson BT-2000 Developers Guide - Page 66
setPreviewSize
![]() |
View all Epson BT-2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 66 highlights
6.7.5. setPreviewSize Function Set the preview resolution. Table 6-8 shows the preview resolutions that can be set for each camera mode. Format void setPreviewSize ( int width, int height ); Parameter Model name int width int height in/out Explanation in Width of preview image in Height of preview image Return value None. Use procedure 1 (Set the camera mode to single-through-5m and the preview resolution to VGA) In this example, the width and height of the image are reduced to approximately 1/4 and displayed in a preview. /*Start camera*/ camera = Camera.open(); /*Acquire current parameter (or default value)*/ Camera.Parameters params = camera.getParameters(); /*Set camera mode to single-through-5m*/ params.setEpsonCameraMode(EPSON_CAMERA_MODE_SINGLE_THROUGH-5M); /*Set preview resolution to VGA*/ params.setPreviewSize(640, 480); /*Reflect camera setting in camera device*/ camera.setParameters(params); /*Start preview*/ camera.startPreview(); MOVERIO Pro Developer's Guide (Rev.1.0) 62
![](/manual_guide/products/epson-bt2000-developers-guide-3a30282/66.png)