MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getImage

Method getImage

src/swingjs/api/js/HTML5Video.java:153–153  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers 4

grabImageMethod · 0.95
actionPerformedMethod · 0.95

Calls

no outgoing calls

Tested by 2

grabImageMethod · 0.76
actionPerformedMethod · 0.76