Create a BufferedIfmage from the current frame. The image will be of type swingjs.api.JSUtilI.TYPE_4BYTE_HTML5, matching the data buffer of HTML5 images. @param v @param imageType if Integer.MIN_VALUE, swingjs.api.JSUtilI.TYPE_4BYTE_HTML5 @return an image, or null if width or height == 0
(HTML5Video v, int imageType)
| 151 | * @return an image, or null if width or height == 0 |
| 152 | */ |
| 153 | public static BufferedImage getImage(HTML5Video v, int imageType) { |
| 154 | Dimension d = HTML5Video.getSize(v); |
| 155 | BufferedImage image = (BufferedImage) HTML5Video.getProperty(v, "_image"); |
| 156 | if (image == null || image.getWidth() != d.width || image.getHeight() != d.height) { |
no outgoing calls