How do you grab an image of the currently selected camera in the smart client? The location of the running code is in the viewItemToolbarPlugin button. I’m trying to grab the image from the smart client and embed it in a message.
Explore the Smart Client Toolbar plugin sample and you will have the first part of the answer. In ShowCameraNameViewItemToolbarPlugin you can see how you can get the camera item.
When you have the camera item I suggest you use JPEGLiveSource to get the image in JPEG format. The Camera Stream Resolution can be used to see how to use this.
Depending what you want to do with the image this might be relevant:
https://developer.milestonesys.com/s/article/How-to-save-a-JPEG-image-file-based-on-JpegData