Examples of Picture


Examples of org.apache.poi.hwpf.usermodel.Picture

            if ( wordDocument instanceof HWPFDocument
                    && ( (HWPFDocument) wordDocument ).getPicturesTable()
                            .hasPicture( characterRun ) )
            {
                HWPFDocument newFormat = (HWPFDocument) wordDocument;
                Picture picture = newFormat.getPicturesTable().extractPicture(
                        characterRun, true );

                processImage( block, characterRun.text().charAt( 0 ) == 0x01,
                        picture );
                continue;
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Picture

            if ( wordDocument instanceof HWPFDocument
                    && ( (HWPFDocument) wordDocument ).getPicturesTable()
                            .hasPicture( characterRun ) )
            {
                HWPFDocument newFormat = (HWPFDocument) wordDocument;
                Picture picture = newFormat.getPicturesTable().extractPicture(
                        characterRun, true );

                processImage( block, characterRun.text().charAt( 0 ) == 0x01,
                        picture );
                continue;
View Full Code Here

Examples of org.apache.poi.ss.usermodel.Picture

      anchor.setAnchorType(ClientAnchor.MOVE_DONT_RESIZE); // Move, but don't size
      if (patriarch == null)
      {
        patriarch = sheet.createDrawingPatriarch();
      }
      final Picture picture = patriarch.createPicture(anchor, pictureId);
      ExcelPrinter.logger.info("Created image: " + pictureId + " => " + picture);
    }
    catch (IOException e)
    {
      ExcelPrinter.logger.warn("Failed to add image. Ignoring.", e);
View Full Code Here

Examples of org.apache.poi.ss.usermodel.Picture

      final ClientAnchor anchor = computeClientAnchor(currentLayout, rectangle, cb);

      Drawing patriarch = printerBase.getDrawingPatriarch();

      final Picture picture = patriarch.createPicture(anchor, pictureId);
      logger.info(String.format("Created image: %d => %s", pictureId, picture))// NON-NLS
    }
    catch (final IOException e)
    {
      logger.warn("Failed to add image. Ignoring.", e)// NON-NLS
View Full Code Here

Examples of org.camunda.bpm.engine.identity.Picture

    if (pictureInfo != null) {
      String pictureByteArrayId = pictureInfo.getValue();
      if (pictureByteArrayId != null) {
        ByteArrayEntity byteArray = commandContext.getDbEntityManager()
          .selectById(ByteArrayEntity.class, pictureByteArrayId);
        return new Picture(byteArray.getBytes(), byteArray.getName());
      }
    }

    return null;
  }
View Full Code Here

Examples of org.camunda.bpm.engine.identity.Picture

    // First, create a new user
    User user = identityService.newUser("johndoe");
    identityService.saveUser(user);
    String userId = user.getId();

    Picture picture = new Picture("niceface".getBytes(), "image/string");
    identityService.setUserPicture(userId, picture);

    picture = identityService.getUserPicture(userId);

    // Fetch and update the user
    user = identityService.createUserQuery().userId("johndoe").singleResult();
    assertTrue("byte arrays differ", Arrays.equals("niceface".getBytes(), picture.getBytes()));
    assertEquals("image/string", picture.getMimeType());

    identityService.deleteUserPicture("johndoe");
    // this is ignored
    identityService.deleteUserPicture("someone-else-we-dont-know");

    // picture does not exist
    picture = identityService.getUserPicture("johndoe");
    assertNull(picture);

    // add new picture
    picture = new Picture("niceface".getBytes(), "image/string");
    identityService.setUserPicture(userId, picture);

    // makes the picture go away
    identityService.deleteUser(user.getId());
  }
View Full Code Here

Examples of org.easycassandra.bean.model.Picture

    /**
     * run the test.
     */
    @Test
    public void insertTest() {
        Picture picture = new Picture();
        picture.setDetail(new Details());
        picture.setName("mypicture");
        picture.getDetail().setFileName("otavio.png");
        byte[] file = new byte[SIZE];
        new Random().nextBytes(file);
        picture.getDetail().setContents(file);
        Assert.assertTrue(dao.insert(picture));

    }
View Full Code Here

Examples of org.kc7bfi.jflac.metadata.Picture

        } else if (type == Metadata.METADATA_TYPE_VORBIS_COMMENT) {
            metadata = new VorbisComment(bitStream, length, isLast);
        } else if (type == Metadata.METADATA_TYPE_CUESHEET) {
      metadata = new CueSheet(bitStream, length, isLast);
  } else if (type == Metadata.METADATA_TYPE_PICTURE) {
      metadata = new Picture(bitStream, length, isLast);
        } else {
            metadata = new Unknown(bitStream, length, isLast);
        }
        frameListeners.processMetadata(metadata);
        //if (isLast) state = DECODER_SEARCH_FOR_FRAME_SYNC;
View Full Code Here

Examples of org.richfaces.demo.tables.model.slides.Picture

    private List<Picture> pictures;

    public SlidesBean() {
        pictures = new ArrayList<Picture>();
        for (int i = 1; i <= FILES_COUNT; i++) {
            pictures.add(new Picture(PATH_PREFIX + PIC_NAME + i + FILE_EXT, PIC_NAME + i));
        }
    }
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.Picture

  }
 
  private void processPictureMove(Worksheet sheet, Map data) {
    DrawingManager dm = ((SheetCtrl)sheet).getDrawingManager();
    String widgetId = (String) data.get("id");
    Picture pic = null;
    List<Picture> pics = dm.getPictures();
    for (Picture p : pics) {
      if (p.getPictureId().equals(widgetId)) {
        pic = p;
        break;
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.