Package quicktime.qd

Examples of quicktime.qd.Pict


   * @return pixel   Pixel data from specified location
   */
  public static int[] getPixel(Movie mov, float time, String channel, int x,
    int y)
  {
    Pict pic = MovieUtils.getMovieFrame(mov, time);
    BufferedImage image = util.ImageUtils.makeJimage(pic);
    WritableRaster raster = image.getRaster();
    return ImageUtils.getPixel(raster, channel, x, y);
  } // getPixel(Movie, float, String, int, int)
View Full Code Here


      f = new Font(fontName, Font.PLAIN, fontSize);
    } // else
    g2d.setFont(f);
    g2d.setPaint(new Color(color[0], color[1], color[2]));
    g2d.drawString(text, x, y);
    Pict result = util.ImageUtils.makeFrame(bimg);
    return result;
  } // paintText(Pict, String, String, String, int, int[], int, int)
View Full Code Here

   * @return result  pic with every pixel in region set to key color
   */
  public static Pict setRegionColor(Pict pic, int top, int bottom, int left,
    int right, int red, int green, int blue)
  {
    Pict result = pic;
    try
    {
      BufferedImage image = ImageUtils.makeJimage(pic);
      int width = right - left;
      int height = bottom - top;
View Full Code Here

    try
    {
      float oldRate = mov.getRate();
      mov.stop();
      time = time * (float) mov.getTimeScale();
      Pict pic = mov.getPict((int) time);
      mov.setRate(oldRate);
      return pic;
    } // try
    catch (Exception e)
    {
View Full Code Here

    Vector<Pict> pics;
    frames = new Pict[0];
    pics = new Vector<Pict>();
    try
    {
      Pict frame;
      int timeScale = mov.getTimeScale();
      int begin = (int)Math.floor(start * timeScale);
      int finish = (int)Math.floor(end * timeScale);

      // get the video track from mov
View Full Code Here

        // add 512 byte header so the grapics importer will think that it's
        // dealing with a pict file

        byte[] newPictBytes = new byte[pics[x].getSize() + 512];
        pics[x].copyToArray(0, newPictBytes, 512, newPictBytes.length - 512);
        pics[x] = new Pict(newPictBytes);

        // export the pict
        DataRef ref = new DataRef(pics[x],
          StdQTConstants.kDataRefQTFileTypeTag, "PICT");
        gi.setDataReference(ref);
View Full Code Here

/*     */     throws StdQTException
/*     */   {
/* 153 */     String str1 = paramString1;
/* 154 */     String str2 = paramString2;
/* 155 */     String str3 = paramString3;
/* 156 */     Pict localPict = paramPict;
/* 157 */     String str4 = paramString4;
/* 158 */     int i = _ID();
/*     */
/* 160 */     if (QTSession.isCurrentOS(4)) {
/* 161 */       this.res = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { private final int val$f_i;
View Full Code Here

TOP

Related Classes of quicktime.qd.Pict

Copyright © 2018 www.massapicom. 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.