Examples of Pict


Examples of org.apache.poi.hslf.blip.PICT

                break;
            case Picture.WMF:
                pict = new WMF();
                break;
            case Picture.PICT:
                pict = new PICT();
                break;
            case Picture.JPEG:
                pict = new JPEG();
                break;
            case Picture.PNG:
View Full Code Here

Examples of org.docx4j.wml.Pict

  private static JAXBElement createPict(boolean w10WrapEl, String style, P textboxContent) {

    org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();

    Pict pict = wmlObjectFactory.createPict();
    JAXBElement<org.docx4j.wml.Pict> pictWrapped = wmlObjectFactory.createRPict(pict);
    org.docx4j.vml.ObjectFactory vmlObjectFactory = new org.docx4j.vml.ObjectFactory();
   
        // Create object for shapetype (wrapped in JAXBElement)
        CTShapetype shapetype = vmlObjectFactory.createCTShapetype();
        JAXBElement<org.docx4j.vml.CTShapetype> shapetypeWrapped = vmlObjectFactory.createShapetype(shapetype);
        pict.getAnyAndAny().add( shapetypeWrapped);
            shapetype.setInsetmode(org.docx4j.vml.officedrawing.STInsetMode.CUSTOM);
            shapetype.setSpt( new Float(202.0) );
            shapetype.setConnectortype(org.docx4j.vml.officedrawing.STConnectorType.STRAIGHT);
            // Create object for stroke (wrapped in JAXBElement)
            CTStroke stroke = vmlObjectFactory.createCTStroke();
            JAXBElement<org.docx4j.vml.CTStroke> strokeWrapped = vmlObjectFactory.createStroke(stroke);
            shapetype.getEGShapeElements().add( strokeWrapped);
                stroke.setJoinstyle(org.docx4j.vml.STStrokeJoinStyle.MITER);
            // Create object for path (wrapped in JAXBElement)
            CTPath path = vmlObjectFactory.createCTPath();
            JAXBElement<org.docx4j.vml.CTPath> pathWrapped = vmlObjectFactory.createPath(path);
            shapetype.getEGShapeElements().add( pathWrapped);
                path.setGradientshapeok(org.docx4j.vml.STTrueFalse.T);
                path.setConnecttype(org.docx4j.vml.officedrawing.STConnectType.RECT);
            shapetype.setCoordsize( "21600,21600");
            shapetype.setVmlId( "_x0000_t202");
            shapetype.setHralign(org.docx4j.vml.officedrawing.STHrAlign.LEFT);
            shapetype.setPath( "m,l,21600r21600,l21600,xe");
           
        // Create object for shape (wrapped in JAXBElement)
        CTShape shape = vmlObjectFactory.createCTShape();
        JAXBElement<org.docx4j.vml.CTShape> shapeWrapped = vmlObjectFactory.createShape(shape);
       
        pict.getAnyAndAny().add( shapeWrapped);
       
            shape.setStyle( style);
            shape.setSpid( "_x0000_s1026");
            shape.setInsetmode(org.docx4j.vml.officedrawing.STInsetMode.CUSTOM);
            shape.setConnectortype(org.docx4j.vml.officedrawing.STConnectorType.STRAIGHT);
View Full Code Here

Examples of quicktime.qd.Pict

            movie.getBounds().getWidth() - 180, 20));
        } // if (movieType == 0)
        else
        {
          // display a no-image picture
          Pict pict = ImageUtils.pictFromFile(PhoenixController.getImage(
          "noimage.bmp"));
          Image image = util.ImageUtils.makeJimage(pict, 200, 150);
          ImageIcon icon  = new ImageIcon(image);
          JLabel label = new JLabel(icon);
          this.getContentPane().add(label, BorderLayout.CENTER);
          this.slider.setPreferredSize(new Dimension(80, 20));
        } // else
        this.panel.add(this.slider, BorderLayout.NORTH);
      } // try
      catch (StdQTException stdqte)
      {
        stdqte.printStackTrace();
      } // catch (StdQTException)
      catch (QTException qte)
      {
        qte.printStackTrace();
      } // catch (QTException)
      catch (Exception e)
      {
        e.printStackTrace();
      } // catch (Exception)

      // initialize timer
      this.timer = new Timer(this.CLOCK, this);
      this.timer.start();
    } // if (movieType != 1)
    else
    {
      // display a no-image picture
      Pict pict = ImageUtils.pictFromFile(PhoenixController.getImage(
      "noimage.bmp"));
      Image image = util.ImageUtils.makeJimage(pict, 200, 150);
      ImageIcon icon  = new ImageIcon(image);
      JLabel label = new JLabel(icon);
      this.getContentPane().add(label, BorderLayout.SOUTH);
View Full Code Here

Examples of quicktime.qd.Pict

    } // if (((int)Math.floor(pict.getPictFrame().getHeight() * percent) ...
    else
    {
      BufferedImage squished1 = squishFrame(pic, direction, percent);
      BufferedImage squished2 = squishFrame(pic, direction, 1 - percent);
      Pict ret = glueFrame(squished1, squished2, direction,
        pic.getPictFrame().getWidth(), pic.getPictFrame().getHeight());
      return ret;
    } // else
  } // kluberizeOne(Pict, int, float)
View Full Code Here

Examples of quicktime.qd.Pict

    try
    {
      int timeScale = mov.getTimeScale();
      int begin = (int)Math.floor(start * timeScale);
      int finish = (int)Math.floor(end * timeScale);
      Pict oldPic = mov.getPict(begin);
      this.cache = chopFrame(oldPic);
      Track visualTrack = mov.getIndTrackType(1,
        StdQTConstants.visualMediaCharacteristic,
        StdQTConstants.movieTrackCharacteristic);
      mov.setTime(new TimeRecord(timeScale, (int) begin));
      Boolean go = true;
      int lastTime = 0;
      while (go)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())

        // find the next frame
        TimeInfo ti = visualTrack.getNextInterestingTime(
          StdQTConstants.nextTimeMediaSample, mov.getTime(), 1);

        // if looped to earlier frame or finished selected section
        if ((lastTime > ti.time) || (ti.time >= finish))
        {
          go = false;
        } // if ((lastTime > ti.time) || (ti.time >= finish))
        else
        {
          // advance to the next frame
          mov.setTime(new TimeRecord(timeScale, ti.time));
          Pict newPic = mov.getPict(mov.getTime());
          float score = this.frameDifference(newPic);
          if ((score > threshold)
              && (mov.getTime() - lastCut > blockRange * mov.getTimeScale()))
          {
            this.cuts.add((float)mov.getTime() / mov.getTimeScale());
View Full Code Here

Examples of quicktime.qd.Pict

    try
    {
      int timeScale = mov.getTimeScale();
      int begin = (int)Math.floor(start * timeScale);
      int finish = (int)Math.floor(end * timeScale);
      Pict oldPic = mov.getPict(begin);
      this.cache = chopFrame(oldPic);

      // get the first visual track from mov
      Track visualTrack = mov.getIndTrackType(1,
        StdQTConstants.visualMediaCharacteristic,
        StdQTConstants.movieTrackCharacteristic);
      mov.setTime(new TimeRecord(timeScale, (int) begin));
      Boolean go = true;
      int lastTime = 0;
      while (go)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())

        // find next frame
        TimeInfo ti = visualTrack.getNextInterestingTime(
          StdQTConstants.nextTimeMediaSample, mov.getTime(), 1);

        // if looped to earlier frame or finished selected section
        if ((lastTime > ti.time) || (ti.time >= finish))
        {
          go = false;
        } // if ((lastTime > ti.time) || (ti.time >= finish))
        else
        {
          mov.setTime(new TimeRecord(timeScale, ti.time));
          Pict newPic = mov.getPict(mov.getTime());
          float score = frameDifference(newPic);
          if ((score > this.threshold)
              && (mov.getTime() - this.lastCut
                  > this.blockRange * mov.getTimeScale()))
          {
View Full Code Here

Examples of quicktime.qd.Pict

    try
    {
      this.lastCut = 0 - ((int)this.blockRange * mov.getTimeScale());
      float end = (float) mov.getDuration() / (float) mov.getTimeScale();
      float now = 0;
      Pict oldPic = MovieUtils.getMovieFrame(mov, 0);
      Pict newPic;
      while (now < end)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
View Full Code Here

Examples of quicktime.qd.Pict

    try
    {
      this.lastCut = 0 - ((int)this.blockRange * mov.getTimeScale());
      float end = (float) mov.getDuration() / (float) mov.getTimeScale();
      float now = 0;
      Pict oldPic = MovieUtils.getMovieFrame(mov, 0);
      Pict newPic;
      while (now < end)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
View Full Code Here

Examples of quicktime.qd.Pict

   *
   * @param mov  Movie to make icon for
   */
  public static ImageIcon getIcon(Movie mov)
  {
    Pict pic = null;
    Image image = null;
    try
    {
      // if no visual track, substitute another image
      if ((mov.getBounds().getHeight() == 0)
View Full Code Here

Examples of quicktime.qd.Pict

   * @param time     Time in movie to retrieve WritableRaster
   * @return raster  WritableRaster of the frame in mov at time
   */
  public static WritableRaster makeRaster(Movie mov, float time)
  {
    Pict pic = MovieUtils.getMovieFrame(mov, time);
    BufferedImage image = ImageUtils.makeJimage(pic);
    return image.getRaster();
  } // makeRaster(Movie, float)
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.