this.modelFrame = new ImageComponent(true, false); this.modelFrame.setShowPixelColours(false); this.modelFrame.setShowXYPosition(false); this.modelFrame.removeMouseListener(this.modelFrame); this.modelFrame.removeMouseMotionListener(this.modelFrame); this.modelFrame.setSize(width, height); this.modelFrame.setPreferredSize(new Dimension(width, height)); this.modelPanel.add(this.modelFrame); gbc = new GridBagConstraints(); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setShowPixelColours(false); this.matchFrame.setShowXYPosition(false); this.matchFrame.removeMouseListener(this.matchFrame); this.matchFrame.removeMouseMotionListener(this.matchFrame); this.matchFrame.setSize(width * 2, height); this.matchFrame.setPreferredSize(new Dimension(width * 2, height)); this.matchPanel.add(this.matchFrame); gbc = new GridBagConstraints(); window.add(this.matchPanel, gbc); this.videoFrame.getScreen().addMouseListener(this.polygonListener);
cmp.autoResize = true; cmp.autoPack = true; cmp.setImage(image); cmp.setOriginalImage(originalImage); cmp.autoResize = ar; cmp.autoPack = ap; cmp.setImage(image); cmp.setOriginalImage(originalImage); final ImageComponent c = new ImageComponent(image); c.setOriginalImage(originalImage);
final BufferedImage img = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_3BYTE_BGR); final Graphics2D g = (Graphics2D) img.getGraphics(); this.getWidth(), this.getHeight(), BufferedImage.TYPE_3BYTE_BGR); final Graphics tg = transparencyGrid.getGraphics(); for (int y = 0; y < this.getHeight(); y += gridSizeY) for (int x = 0; x < this.getWidth(); x += gridSizeX) final int p = 4; // padding final int dx = 0; int dy = this.getHeight() - (fh + p);
this.screen.setImage(bimg = ImageUtilities.createBufferedImageForDisplay(this.currentFrame, bimg));
this.screen.setImage(bimg = ImageUtilities.createBufferedImageForDisplay(this.currentFrame, bimg));
final BufferedImage img = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_3BYTE_BGR); final Graphics2D g = (Graphics2D) img.getGraphics(); this.getWidth(), this.getHeight(), BufferedImage.TYPE_3BYTE_BGR); final Graphics tg = transparencyGrid.getGraphics(); for (int y = 0; y < this.getHeight(); y += gridSizeY) for (int x = 0; x < this.getWidth(); x += gridSizeX) final int p = 4; // padding final int dx = 0; int dy = this.getHeight() - (fh + p);
this.modelFrame = new ImageComponent(true, false); this.modelFrame.setSize(width, height); this.modelFrame.setPreferredSize(new Dimension(width, height)); this.modelPanel.add(this.modelFrame); gbc = new GridBagConstraints(); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setSize(width * 2, height); this.matchFrame.setPreferredSize(new Dimension(width * 2, height)); this.matchPanel.add(this.matchFrame); gbc = new GridBagConstraints(); window.add(this.matchPanel, gbc); this.videoFrame.getScreen().addMouseListener(this.polygonListener);
this.modelFrame = new ImageComponent(true, false); this.modelFrame.setShowPixelColours(false); this.modelFrame.setShowXYPosition(false); this.modelFrame.removeMouseListener(this.modelFrame); this.modelFrame.removeMouseMotionListener(this.modelFrame); this.modelFrame.setSize(width, height); this.modelFrame.setPreferredSize(new Dimension(width, height)); this.modelPanel.add(this.modelFrame); gbc = new GridBagConstraints(); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setShowPixelColours(false); this.matchFrame.setShowXYPosition(false); this.matchFrame.removeMouseListener(this.matchFrame); this.matchFrame.removeMouseMotionListener(this.matchFrame); this.matchFrame.setSize(width * 2, height); this.matchFrame.setPreferredSize(new Dimension(width * 2, height)); this.matchPanel.add(this.matchFrame); gbc = new GridBagConstraints(); window.add(this.matchPanel, gbc); this.videoFrame.getScreen().addMouseListener(this.polygonListener);
final ImageComponent ic2 = new ImageComponent( ImageUtilities.createBufferedImageForDisplay(image)); ic.addImageComponentListener(new ImageComponentListener() ic2.setOriginalImage(image); f.getContentPane().add(ic2);
final ImageComponent ic2 = new ImageComponent( ImageUtilities.createBufferedImageForDisplay(image)); ic.addImageComponentListener(new ImageComponentListener() ic2.setOriginalImage(image); f.getContentPane().add(ic2);
this.modelFrame = new ImageComponent(true, false); this.modelFrame.setSize(width, height); this.modelFrame.setPreferredSize(new Dimension(width, height)); this.modelPanel.add(this.modelFrame); gbc = new GridBagConstraints(); this.matchFrame = new ImageComponent(true, false); this.matchFrame.setSize(width * 2, height); this.matchFrame.setPreferredSize(new Dimension(width * 2, height)); this.matchPanel.add(this.matchFrame); gbc = new GridBagConstraints(); window.add(this.matchPanel, gbc); this.videoFrame.getScreen().addMouseListener(this.polygonListener);
c.setPreferredSize(new Dimension(width, height)); c.setLayout(new GridBagLayout()); ic = new ImageComponent(true, false); c.add(ic); for (final Component cc : c.getComponents()) {
cmp.autoResize = true; cmp.autoPack = true; cmp.setImage(image); cmp.setOriginalImage(originalImage); cmp.autoResize = ar; cmp.autoPack = ap; cmp.setImage(image); cmp.setOriginalImage(originalImage); final ImageComponent c = new ImageComponent(image); c.setOriginalImage(originalImage);
this.calculateScaleFactorsToFit(image, this.getBounds()); if (image.getWidth() != this.getWidth() || image.getHeight() != this.getHeight()) this.setPreferredSize(new Dimension( (int) (image.getWidth() * this.scaleFactorX), (int) (image.getHeight() * this.scaleFactorY))); this.setSize(new Dimension( (int) (image.getWidth() * this.scaleFactorX), (int) (image.getHeight() * this.scaleFactorY))); this.updatePixelColours(); else this.repaint();
this.calculateScaleFactorsToFit(image, this.getBounds()); if (image.getWidth() != this.getWidth() || image.getHeight() != this.getHeight()) this.setPreferredSize(new Dimension( (int) (image.getWidth() * this.scaleFactorX), (int) (image.getHeight() * this.scaleFactorY))); this.setSize(new Dimension( (int) (image.getWidth() * this.scaleFactorX), (int) (image.getHeight() * this.scaleFactorY))); this.updatePixelColours(); else this.repaint();
this.modelFrame.setImage(ImageUtilities.createBufferedImageForDisplay(this.modelImage));
this.modelFrame.setImage(ImageUtilities.createBufferedImageForDisplay(this.modelImage));
this.modelFrame.setImage(ImageUtilities.createBufferedImageForDisplay(this.modelImage));
this.modelFrame.setImage(ImageUtilities.createBufferedImageForDisplay(this.modelImage));
this.ic.setImage(ImageUtilities.createBufferedImageForDisplay(outFrame));