Examples of Image


Examples of com.jgraph.gaeawt.java.awt.Image

      y_max = scale_factor_y;
    }

    ImageWrapper tti = new ImageWrapper(x_max, y_max);

    Image i = tti.getImage();

    Claim.claim(i != null, "Severe component/image problems...");

    if (i != null)
    {
      feg.draw(i.getGraphics(), gdo);

      //gdo.getCoords().dump();

      //ImageWrapperTranslated image = FontImageProcessor.fontScale(tti, scale_factor_x, scale_factor_y);
      //cache[c] = new CachedGlyph(image.getImageWrapper(), image.getOffsetY());
View Full Code Here

Examples of com.jme.image.Image

        // Create the buffered image using dummy data to initialize it
        // TODO: change this after by ref textures are implemented
        ByteBuffer data =
                BufferUtils.createByteBuffer(roundedWidth * roundedHeight * 4);
        Image image =
                new Image(Image.Format.RGB8, roundedWidth, roundedHeight, data);

        // Create the texture which wraps the image
        texture = new Texture2D();
        logger.fine("Created new texture " + texture);
        texture.setImage(image);
View Full Code Here

Examples of com.jme3.texture.Image

    if (matParam == null)// try to get the default one..
      matParam = terrain.getMaterial().getParam("DiffuseMap");
    if (matParam == null)
      return false;
    Texture tex = (Texture) matParam.getValue();
    Image image = tex.getImage();
    Vector2f uv = getPointPercentagePosition(terrain, pos, scaledWidth);

    ByteBuffer buf = image.getData(0);
    int width = image.getWidth();
    int height = image.getHeight();

    int x = (int) (uv.x * width);
    int y = (int) (uv.y * height);

    if (((TextureKey) tex.getKey()).isFlipY())
      y = height - y;
    // compute bytes of image
    int bytes = image.getFormat().getBitsPerPixel() / 8;
    int position = (y * width + x) * bytes;// image dependent..
    position += channelId;// move on by channel id offset

    if (position > buf.capacity())
      return false;
View Full Code Here

Examples of com.knowgate.hipergate.Image

    if (DBBind.exists(oConn, DB.k_images, "U")) {
      oItems = new DBSubset (DB.k_images, DB.gu_image, DB.gu_workarea + "='" + sWrkAreaGUID + "'", 100);
      iItems = oItems.load(oConn);
      for (int p=0;p<iItems; p++)
        new Image(oConn, oItems.getString(0,p)).delete(oConn);
    }

    // -----------------------------------------------------------------------------------
    // Borrar las listas
View Full Code Here

Examples of com.kpelykh.docker.client.model.Image

    LOG.info("Images List: {}", images);
    Info info = dockerClient.info();

    assertThat(images.size(), equalTo(info.getImages()));

    Image img = images.get(0);
    assertThat(img.getCreated(), is(greaterThan(0L)));
    assertThat(img.getVirtualSize(), is(greaterThan(0L)));
    assertThat(img.getId(), not(isEmptyString()));
    assertThat(img.getTag(), not(isEmptyString()));
    assertThat(img.getRepository(), not(isEmptyString()));
  }
View Full Code Here

Examples of com.liferay.portal.model.Image

    if (uploadedFileId == null) {

      try {

        long imageId = user.getPortraitId();
        Image image = ImageServiceUtil.getImage(imageId);
        setContentType(image.getType());
        byteArray = image.getTextObj();
      }
      catch (Exception e) {

        logger.error(e);
        throw new IOException(e.getMessage());
View Full Code Here

Examples of com.lowagie.text.Image

                        if (hs != null)
                            hScale = hs.floatValue();
                        text.setTextMatrix(hScale, b, c, 1, xMarker, yMarker);
                    }
                    if (chunk.isImage()) {
                        Image image = chunk.getImage();
                        float matrix[] = image.matrix();
                        matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX];
                        matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY];
                        graphics.addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
                        text.moveText(xMarker + lastBaseFactor + image.getScaledWidth() - text.getXTLM(), 0);
                    }
                }
                xMarker += width;
                ++chunkStrokeIdx;
            }
View Full Code Here

Examples of com.mincko.minckotest.shared.Image

     
        String strJson = req.getParameter("jsonData");
       
        if(strJson != null){ //update image if the json is not empty.
        String strJsonDel = req.getParameter("jsonDelete");
          Image data;
          //do the delete first
          if(strJsonDel!=null && strJsonDel!=""){
            data = new Gson().fromJson(strJsonDel, Image.class);
            if (ofy == null) ofy = PMF.getObjectify();
            //need to delete blobstoreServic
             BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
             for (Iterator<Image> iter = data.getImgList().iterator(); iter.hasNext();) {
               Image img =  ofy.get(Image.class, ((Image) iter.next()).id);
               BlobKey blobKey = new BlobKey(img.blobKey);
               //if(blobKey !=null)
                 //blobstoreService.delete(blobKey);
             }
            ofy.delete(data.getImgList());
          }
         
            data = new Gson().fromJson(strJson, Image.class);
            for (Iterator<Image> iter = data.getImgList().iterator(); iter.hasNext();) {
          Image img = (Image) iter.next();
          saveImageData(img.id, null,null, img.description, img.order );
        }
        }
        else if (req.getParameter("websiteComponentIdentifier") !=null) { //otherwise, add new image
          saveImageData(0,req.getParameter("websiteComponentIdentifier"), req.getParameter("blobkey"), req.getParameter("description"), 0);
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.models.Image

  }


  public Image create(final Integer user_id) throws IOException {
    long __id = curId.getAndIncrement();
    Image newInst = new Image(__id, user_id, databases);
    records.put(__id, newInst);
    clearForeignKeyCache();
    return newInst.getCopy();
  }
View Full Code Here

Examples of com.rometools.rome.feed.rss.Image

     * @param rssRoot the root element of the RSS document to parse for image information.
     * @return the parsed image bean.
     */
    protected Image parseImage(final Element rssRoot) {

        Image image = null;

        final Element eImage = getImage(rssRoot);
        if (eImage != null) {

            image = new Image();

            final Element title = eImage.getChild("title", getRSSNamespace());
            if (title != null) {
                image.setTitle(title.getText());
            }

            final Element url = eImage.getChild("url", getRSSNamespace());
            if (url != null) {
                image.setUrl(url.getText());
            }

            final Element link = eImage.getChild("link", getRSSNamespace());
            if (link != null) {
                image.setLink(link.getText());
            }

        }

        return image;
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.