htiextension/com.nokia.s60tools.hticonnection/src/com/nokia/s60tools/hticonnection/services/screencaptureservice/ScreenCaptureRequest.java
equal
deleted
inserted
replaced
65 |
65 |
66 /* (non-Javadoc) |
66 /* (non-Javadoc) |
67 * @see com.nokia.s60tools.hticonnection.core.AbstractRequest#invokeService(com.nokia.HTI.IService) |
67 * @see com.nokia.s60tools.hticonnection.core.AbstractRequest#invokeService(com.nokia.HTI.IService) |
68 */ |
68 */ |
69 public RequestResult invokeService(IService service) throws Exception{ |
69 public RequestResult invokeService(IService service) throws Exception{ |
70 byte[] result = ((com.nokia.HTI.ScreenCapturingService.ScreenCapturingService)service) |
70 com.nokia.HTI.ScreenCapturingService.ScreenCapturingService scService = |
71 .captureFullScreen(imgMimeType, (byte)colorDepth, timeout); |
71 (com.nokia.HTI.ScreenCapturingService.ScreenCapturingService)service; |
|
72 |
|
73 byte[] result = scService.captureFullScreen(imgMimeType, (byte)colorDepth, timeout); |
72 |
74 |
73 // Testing image to prevent sending invalid data. |
75 // Testing image to prevent sending invalid data. |
74 testImageData(result); |
76 testImageData(result); |
75 |
77 |
76 return new RequestResult(result); |
78 return new RequestResult(result); |