Examples of addPicture()


Examples of org.apache.photark.services.album.Album.addPicture()

            }
        }


        if (accessManager.isPermitted(userId, albumName, new String[]{ALBUM_ADD_IMAGES_PERMISSION})) {
            album.addPicture(image);
            this.gallery.imageAdded(albumName, image);
        }
        if (accessManager.isPermitted(userId, albumName, new String[]{ALBUM_EDIT_ALBUM_DESCRIPTION_PERMISSION})) {
            album.setDescription(albumDescription);
        }
View Full Code Here

Examples of org.apache.photark.services.album.Album.addPicture()

   * @param String albumDescription
   */
  private void addPictureToAlbum(String albumName,String albumDescription, Image image) {
    gallery.addAlbum(albumName);
    Album album = new JCRAlbumImpl(repositoryManager, albumName);
    album.addPicture(image);
    album.setDescription(albumDescription);
  }

  /**
   * @param albumName String
View Full Code Here

Examples of org.apache.poi.hslf.HSLFSlideShow.addPicture()

        int streamSize = out.size();

        PictureData data = PictureData.create(Picture.JPEG);
        data.setData(new byte[100]);
        int offset = hslf.addPicture(data);
        assertEquals(streamSize, offset);
        assertEquals(3, ppt.getPictureData().length);

    }
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        Slide slide = ppt.createSlide();

        String path = cwd + "/test-movie.mpg";
        int movieIdx = ppt.addMovie(path, MovieShape.MOVIE_MPEG);
        int thumbnailIdx = ppt.addPicture(new File(cwd, "tomcat.png"), Picture.PNG);

        MovieShape shape = new MovieShape(movieIdx, thumbnailIdx);
        shape.setAnchor(new Rectangle2D.Float(300,225,120,90));
        slide.addShape(shape);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        //slide 1
        slide = ppt.createSlide();
        slide.setFollowMasterBackground(false);
        fill = slide.getBackground().getFill();
        idx = ppt.addPicture(new File(System.getProperty("HSLF.testdata.path") + "/tomcat.png"), Picture.PNG);
        fill.setFillType(Fill.FILL_PICTURE);
        fill.setPictureData(idx);

        shape = new AutoShape(ShapeTypes.Rectangle);
        shape.setAnchor(new java.awt.Rectangle(100, 100, 200, 200));
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        //slide 2
        slide = ppt.createSlide();
        slide.setFollowMasterBackground(false);
        fill = slide.getBackground().getFill();
        idx = ppt.addPicture(new File(System.getProperty("HSLF.testdata.path") + "/tomcat.png"), Picture.PNG);
        fill.setFillType(Fill.FILL_PATTERN);
        fill.setPictureData(idx);
        fill.setBackgroundColor(Color.green);
        fill.setForegroundColor(Color.red);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        //slide 3
        slide = ppt.createSlide();
        slide.setFollowMasterBackground(false);
        fill = slide.getBackground().getFill();
        idx = ppt.addPicture(new File(System.getProperty("HSLF.testdata.path") + "/tomcat.png"), Picture.PNG);
        fill.setFillType(Fill.FILL_TEXTURE);
        fill.setPictureData(idx);

        shape = new AutoShape(ShapeTypes.Rectangle);
        shape.setAnchor(new java.awt.Rectangle(100, 100, 200, 200));
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        shape = new AutoShape(ShapeTypes.Rectangle);
        shape.setAnchor(new java.awt.Rectangle(100, 100, 200, 200));
        fill = shape.getFill();
        fill.setFillType(Fill.FILL_PICTURE);
        idx = ppt.addPicture(new File(System.getProperty("HSLF.testdata.path") + "/clock.jpg"), Picture.JPEG);
        fill.setPictureData(idx);
        slide.addShape(shape);

        // slide 4
        slide = ppt.createSlide();
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        group.setAnchor(new Rectangle(0, 0, (int)pgsize.getWidth(), (int)pgsize.getHeight()));
        slide.addShape(group);

        File img = new File(cwd, "clock.jpg");
        int idx = ppt.addPicture(img, Picture.JPEG);
        Picture pict = new Picture(idx, group);
        pict.setAnchor(new Rectangle(0, 0, 200, 200));
        group.addShape(pict);

        Line line = new Line(group);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.SlideShow.addPicture()

        Slide s = ppt.createSlide();
        Slide s2 = ppt.createSlide();
        Slide s3 = ppt.createSlide();

        int idx = ppt.addPicture(new File(cwd, "clock.jpg"), Picture.JPEG);
        Picture pict = new Picture(idx);
        Picture pict2 = new Picture(idx);
        Picture pict3 = new Picture(idx);

        pict.setAnchor(new Rectangle(10,10,100,100));
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.