Package quicktime.std.image

Examples of quicktime.std.image.GraphicsMode


    // if transparency is indicated, make the special value the transparent
    // color
    if (bgColor[0] == -1)
    {
      timeCoder.setGraphicsMode(new GraphicsMode(QDConstants.transparent,
        new QDColor(0.1f, 0.7f, 0.43f)));
    } // if (bgColor[0] == -1)
    return movie;
  } // addTimeCode(Movie, String, String, int, int[], int[], int, int, int, int)
View Full Code Here


      QDRect to2 = new QDRect(0, 0,
        movBack.getDisplayBoundsRgn().getBounds().getWidth(),
        movBack.getDisplayBoundsRgn().getBounds().getHeight());
      matrix2.map(from2, to2);

      GraphicsMode graph = new GraphicsMode(QDConstants.transparent, key);

      // make pixels with key color transparent, so back movie shows through
      VisualMediaHandler handlerFore =
        (VisualMediaHandler)trackFore.getMedia().getHandler();
      handlerFore.setGraphicsMode(graph);
View Full Code Here

/*     */   }
/*     */
/*     */   public GraphicsMode getGraphicsMode(int paramInt)
/*     */     throws StdQTException
/*     */   {
/* 159 */     GraphicsMode localGraphicsMode = new GraphicsMode();
/* 160 */     int i = SpriteMediaGetSpriteProperty(_ID(), paramInt, 6, localGraphicsMode.getBytes());
/*     */
/* 164 */     StdQTException.checkError(i);
/*     */
/* 166 */     return localGraphicsMode;
/*     */   }
View Full Code Here

/*     */   {
/* 726 */     byte[] arrayOfByte = { 0 };
/* 727 */     short[] arrayOfShort = { 0 };
/* 728 */     QTException.checkError(QTSPresGetGraphicsMode(_ID(), QTObject.ID(paramStream), arrayOfShort, arrayOfByte));
/*     */
/* 730 */     return new GraphicsMode(arrayOfShort[0], QDColor.fromArray(arrayOfByte, 6));
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public final void setGraphicsMode(GraphicsMode paramGraphicsMode)
/*     */     throws StdQTException
/*     */   {
/* 124 */     paramGraphicsMode = paramGraphicsMode == null ? new GraphicsMode() : paramGraphicsMode;
/* 125 */     synchronized (QTNative.globalsLock) {
/* 126 */       StdQTException.checkError(SetSpriteWorldGraphicsMode(_ID(), paramGraphicsMode.getGraphicsMode(), paramGraphicsMode.getColor().getRGBColor()));
/*     */     }
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public GraphicsMode getGraphicsMode()
/*     */     throws StdQTException
/*     */   {
/* 361 */     GraphicsMode localGraphicsMode = new GraphicsMode();
/* 362 */     synchronized (QTNative.globalsLock) {
/* 363 */       int i = GetSpriteProperty(_ID(), 6, localGraphicsMode.getBytes());
/* 364 */       StdQTException.checkError(i);
/*     */     }
/* 366 */     return localGraphicsMode;
/*     */   }
View Full Code Here

/*     */   {
/*  49 */     int[] arrayOfInt = new int[1];
/*  50 */     byte[] arrayOfByte = new byte[6];
/*  51 */     StdQTException.checkError(MediaGetGraphicsMode(_ID(), arrayOfInt, arrayOfByte));
/*     */
/*  54 */     return new GraphicsMode(arrayOfInt[0], QDColor.fromArray(arrayOfByte, 6));
/*     */   }
View Full Code Here

/* 258 */       localTwoDSprite.setLayer(paramInt);
/* 259 */       localTwoDSprite.setVisible(paramBoolean);
/*     */     } else {
/* 261 */       ImageSpec localImageSpec = (ImageSpec)paramObject;
/*     */
/* 263 */       GraphicsMode localGraphicsMode = null;
/* 264 */       if ((paramObject instanceof Compositable))
/* 265 */         localGraphicsMode = ((Compositable)paramObject).getGraphicsMode();
/*     */       Matrix localMatrix;
/* 267 */       if ((paramObject instanceof Transformable))
/* 268 */         localMatrix = ((Transformable)paramObject).getMatrix();
View Full Code Here

TOP

Related Classes of quicktime.std.image.GraphicsMode

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.