Examples of ImageRepresentation


Examples of ae.sun.awt.image.ImageRepresentation

                                     "created with createImage(producer)");
    }

    /* this method is needed by printing code */
    public ColorModel getColorModel() {
        ImageRepresentation imageRep = getImageRep();
        return imageRep.getColorModel();
    }
View Full Code Here

Examples of ae.sun.awt.image.ImageRepresentation

        return imageRep.getColorModel();
    }

    /* this method is needed by printing code */
    public BufferedImage getBufferedImage() {
        ImageRepresentation imageRep = getImageRep();
        return imageRep.getBufferedImage();
    }
View Full Code Here

Examples of ae.sun.awt.image.ImageRepresentation

        return imageRep.getBufferedImage();
    }

    public void setAccelerationPriority(float priority) {
        super.setAccelerationPriority(priority);
        ImageRepresentation imageRep = getImageRep();
        imageRep.setAccelerationPriority(accelerationPriority);
    }
View Full Code Here

Examples of ds.pjftp.representation.impl.ImageRepresentation

        switch (type) {
            case ASCII_UP: case ASCII_LOW:
                return new AsciiRepresentation();
            case IMAGE_UP: case IMAGE_LOW:
                return new ImageRepresentation();
            default:
                return null;
        }
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.ImageRepresentation

        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        ImageRepresentation rep = super.getRepresentation(new ImageRepresentation());
        rep.setAltText(this.altText);
        rep.setUrl(this.url);
        rep.setId(this.id);
        rep.setI18n(getI18nMap());
        return rep;
    }
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.image.ImageRepresentation

      image = export(shape, document);
    } catch (Exception e) {
      return null;
    }
    image.deleteOnExit();
    return new ImageRepresentation(image, ImageType.PNG);
  }
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.image.ImageRepresentation

    Configuration configuration = cP.serializeConfiguration();

    String curDir = System.getProperty("user.dir"); //$NON-NLS-1$
    String imageFile = curDir + TEST_IMAGE;

    ImageRepresentation image = new ImageRepresentation(
        new File(imageFile), ImageType.PNG);
    ImageScaler scaler = new ImageScaler();
    IArtefactRepresentation result = scaler.process(image, configuration);

    Assert.assertNotNull(result);
    String type = result.getType();
    Assert.assertEquals(ImageRepresentation.TYPE, type);

    ImageRepresentation resultImage = (ImageRepresentation) result;
    File f = image.getImageFile();
    Assert.assertTrue(f.exists());
    Assert.assertTrue(f.isFile());

    float heightScale = ((float) resultImage.getHeight())
        / ((float) image.getHeight());
    float widthScale = ((float) resultImage.getWidth())
        / ((float) image.getWidth());

    Assert.assertEquals(SCALE, heightScale, 0.05);
    Assert.assertEquals(SCALE, widthScale, 0.05);
  }
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.image.ImageRepresentation

            ImageFileFormat.PNG);
      }
    });

    File imageFile = image_generateImage;
    ImageRepresentation imageRepresentation = new ImageRepresentation(
        imageFile, ImageType.PNG);
    imageFile.deleteOnExit();
    return imageRepresentation;
  }
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.image.ImageRepresentation

      return null;
    String type = representation.getType();
    if (!ImageRepresentation.TYPE.equals(type))
      return null;

    ImageRepresentation image = (ImageRepresentation) representation;
    File imageFile = image.getImageFile();
    File scaledImage;

    ConfigurationProvider cP = new ConfigurationProvider();
    cP.extractContent(configuration);
    float scale = cP.getScaleValue();

    try {
      scaledImage = scale(imageFile, scale);
    } catch (IOException e) {
      return null;
    }

    scaledImage.deleteOnExit();
    return new ImageRepresentation(scaledImage, ImageType.PNG);
  }
View Full Code Here

Examples of org.tuba.spatschorke.diploma.representation.image.ImageRepresentation

      return null;
    String type = representation.getType();
    if (!ImageRepresentation.TYPE.equals(type))
      return null;

    ImageRepresentation image = (ImageRepresentation) representation;

    String imagePath = null;
    try {
      imagePath = image.getImageFile().getCanonicalPath();
    } catch (IOException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }

    if (imagePath == null)
      return null;

    GraphicInfo graphicInfo = new GraphicInfo(imagePath, image.getWidth(),
        true, image.getHeight(), true, VertOrientation.TOP,
        HoriOrientation.LEFT, TextContentAnchorType.AT_CHARACTER);

    String id = null;
    if (position.getType().equals(TextPosition.TYPE))
      id = integrateInText(graphicInfo, (TextPosition) position);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.