Package quicktime.std.image

Examples of quicktime.std.image.Matrix


/* 180 */     if (this.transMatrix != null) {
/* 181 */       this.consReached = this.transMatrix.transformTarget();
/*     */     }
/*     */     else
/*     */     {
/* 186 */       Matrix localMatrix1 = this.target.getMatrix().copy();
/* 187 */       transformMatrix(localMatrix1);
/*     */
/* 189 */       if (this.doConstraintBoundsTesting)
/*     */       {
/* 191 */         Matrix localMatrix2 = new Matrix();
/* 192 */         this.space.getMatrix().inverse(localMatrix2);
/*     */
/* 195 */         QDRect localQDRect1 = this.space.getDisplayBounds().copy();
/* 196 */         localMatrix2.transformRect(localQDRect1);
/*     */
/* 199 */         QDDimension localQDDimension = this.target.getOriginalSize();
/* 200 */         float f1 = localMatrix1.getTx();
/* 201 */         float f2 = localMatrix1.getTy();
/* 202 */         int i = localQDRect1.getX();
View Full Code Here


/*     */   {
/*     */     try
/*     */     {
/* 227 */       QDRect localQDRect = this.space.getDisplayBounds();
/*     */
/* 229 */       this.invSpaceMatrix = new Matrix();
/* 230 */       Matrix localMatrix = this.space.getMatrix().copy();
/* 231 */       localMatrix.setTx(0.0F);
/* 232 */       localMatrix.setTy(0.0F);
/* 233 */       localMatrix.inverse(this.invSpaceMatrix);
/* 234 */       this.origPt = new QDPoint[1];
/* 235 */       this.origPt[0] = new QDPoint(paramMouseEvent.getX(), paramMouseEvent.getY());
/* 236 */       this.invSpaceMatrix.transformPoints(this.origPt);
/* 237 */       this.origTargetMatrix = this.target.getMatrix();
/* 238 */       this.spaceRect = localQDRect.copy();
View Full Code Here

/* 257 */       QDPoint[] arrayOfQDPoint = new QDPoint[1];
/* 258 */       arrayOfQDPoint[0] = new QDPoint(paramMouseEvent.getX(), paramMouseEvent.getY());
/* 259 */       this.invSpaceMatrix.transformPoints(arrayOfQDPoint);
/* 260 */       int j = arrayOfQDPoint[0].getX() - this.origPt[0].getX();
/* 261 */       int k = arrayOfQDPoint[0].getY() - this.origPt[0].getY();
/* 262 */       Matrix localMatrix = this.origTargetMatrix.copy();
/* 263 */       localMatrix.translate(j, k);
/*     */
/* 265 */       QDDimension localQDDimension = this.target.getOriginalSize();
/* 266 */       int m = localQDDimension.getWidth();
/* 267 */       int n = localQDDimension.getHeight();
/* 268 */       float f1 = localMatrix.getTx();
/* 269 */       float f2 = localMatrix.getTy();
/* 270 */       int i1 = this.spaceRect.getX();
/* 271 */       int i2 = this.spaceRect.getWidth() - m;
/* 272 */       int i3 = this.spaceRect.getY();
/* 273 */       int i4 = this.spaceRect.getHeight() - n;
/*     */
/* 275 */       int i5 = localMatrix.getType();
/* 276 */       switch (i5) {
/*     */       case 0:
/*     */       case 1:
/* 279 */         break;
/*     */       default:
/* 283 */         QDRect localQDRect = new QDRect(0, 0, m, n);
/* 284 */         localMatrix.transformRect(localQDRect);
/* 285 */         m = localQDRect.getWidth();
/* 286 */         n = localQDRect.getHeight();
/* 287 */         i1 = (int)(localMatrix.getTx() - localQDRect.getX() + 0.5F);
/* 288 */         f1 -= i1;
/* 289 */         i3 = (int)(localMatrix.getTy() - localQDRect.getY() + 0.5F);
/* 290 */         f2 -= i3;
/* 291 */         i4 = this.spaceRect.getHeight() - n + i3;
/* 292 */         i2 = this.spaceRect.getWidth() - m + i1;
/*     */       }
/*     */
/* 297 */       if (f1 < this.spaceRect.getX()) {
/* 298 */         if ((this.constrained & 0x1) != 0) {
/* 299 */           localMatrix.setTx(i1);
/* 300 */           i = 1;
/* 301 */         } else if (f1 <= -m) {
/* 302 */           localMatrix.setTx(-m + this.xBufferIfUnConstrained + i1);
/* 303 */           i = 1;
/*     */         }
/* 305 */       } else if (f1 + m > this.spaceRect.getWidth()) {
/* 306 */         if ((this.constrained & 0x10) != 0) {
/* 307 */           localMatrix.setTx(i2);
/* 308 */           i = 1;
/* 309 */         } else if (f1 >= this.spaceRect.getWidth()) {
/* 310 */           localMatrix.setTx(i2 + m - this.xBufferIfUnConstrained);
/* 311 */           i = 1;
/*     */         }
/*     */       }
/*     */
/* 315 */       if (f2 < this.spaceRect.getY()) {
/* 316 */         if ((this.constrained & 0x100) != 0) {
/* 317 */           localMatrix.setTy(i3);
/* 318 */           i = 1;
/* 319 */         } else if (f2 <= -n) {
/* 320 */           localMatrix.setTy(-n + this.yBufferIfUnConstrained + i3);
/* 321 */           i = 1;
/*     */         }
/* 323 */       } else if (f2 + n > this.spaceRect.getHeight()) {
/* 324 */         if ((this.constrained & 0x1000) != 0) {
/* 325 */           localMatrix.setTy(i4);
/* 326 */           i = 1;
/* 327 */         } else if (f2 >= this.spaceRect.getHeight()) {
/* 328 */           localMatrix.setTy(i4 + n - this.yBufferIfUnConstrained);
/* 329 */           i = 1;
/*     */         }
/*     */       }
/*     */
/* 333 */       this.target.setMatrix(localMatrix);
View Full Code Here

/* 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();
/*     */       else
/* 270 */         localMatrix = new Matrix();
/* 271 */       localTwoDSprite = new TwoDSprite(localImageSpec, localMatrix, paramBoolean, paramInt, localGraphicsMode);
/*     */     }
/* 273 */     this.membersTable.put(paramObject, localTwoDSprite);
/* 274 */     this.spritesTable.put(localTwoDSprite, paramObject);
/* 275 */     postProcessAdd(paramObject, localTwoDSprite);
View Full Code Here

/*     */     case 6:
/* 316 */       j = 1;
/* 317 */       break;
/*     */     case 2:
/*     */     case 3:
/* 320 */       Matrix localMatrix = localQTDrawable.getMatrix();
/* 321 */       if ((localMatrix.getSx() < 0.0F) || (localMatrix.getSy() < 0.0F))
/* 322 */         j = 1; break;
/*     */     }
/*     */
/* 334 */     if ((paramGroupMember.clipRegion == null) || (this.redoCachedMembersClip))
/* 335 */       paramGroupMember.clipRegion = (j != 0 ? createRotatedRegion(localQTDrawable) : new Region(localQTDrawable.getDisplayBounds()));
View Full Code Here

/* 346 */       QTUtils.reclaimMemory();
/* 347 */       QTUtils.checkFreeMemory();
/* 348 */       this.doMemCleanup = false;
/*     */     }
/*     */
/* 351 */     Matrix localMatrix = paramQTDrawable.getMatrix().copy();
/* 352 */     QDRect localQDRect = new QDRect(paramQTDrawable.getOriginalSize());
/* 353 */     localMatrix.transformRect(localQDRect);
/*     */
/* 355 */     QDGraphics localQDGraphics = new QDGraphics(1, localQDRect);
/* 356 */     localQDGraphics.setBackColor(QDColor.white);
/* 357 */     localQDGraphics.eraseRect(localQDRect);
/* 358 */     paramQTDrawable.setGWorld(localQDGraphics);
View Full Code Here

/*  64 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/*  66 */         return GDevice.getMain();
/*     */       }
/*     */     });
/*  70 */     setMatrix(new Matrix());
/*  71 */     setGDHandle(localGDevice);
/*  72 */     setGraphicsMode(64);
/*  73 */     setOpColor(QDColor.black);
/*  74 */     setLeftVolume(256);
/*  75 */     setRightVolume(256);
View Full Code Here

/* 154 */     setBytesAt(8, 36, paramMatrix.getBytes(), 0);
/*     */   }
/*     */
/*     */   public Matrix getMatrix()
/*     */   {
/* 161 */     Matrix localMatrix = new Matrix();
/* 162 */     getBytesAt(8, 36, localMatrix.getBytes(), 0);
/* 163 */     return localMatrix;
/*     */   }
View Full Code Here

/*     */
/*     */   /** @deprecated */
/*     */   public void setLocation(int paramInt1, int paramInt2)
/*     */     throws QTException
/*     */   {
/*  77 */     Matrix localMatrix = getMatrix();
/*  78 */     if (localMatrix != null) {
/*  79 */       localMatrix.setTx(paramInt1);
/*  80 */       localMatrix.setTy(paramInt2);
/*  81 */       setMatrix(localMatrix);
/*     */     }
/*     */   }
View Full Code Here

/*     */
/*     */   /** @deprecated */
/*     */   public void setSize(QDDimension paramQDDimension)
/*     */     throws QTException
/*     */   {
/*  91 */     Matrix localMatrix1 = getMatrix();
/*  92 */     float f1 = localMatrix1.getTx();
/*  93 */     float f2 = localMatrix1.getTy();
/*     */
/*  95 */     if (localMatrix1 != null) {
/*  96 */       Matrix localMatrix2 = new Matrix();
/*  97 */       QDDimension localQDDimension = getOriginalSize();
/*  98 */       localMatrix2.map(new QDRect(localQDDimension), new QDRect(paramQDDimension));
/*  99 */       localMatrix2.translate(f1, f2);
/* 100 */       setMatrix(localMatrix2);
/*     */     }
/*     */   }
View Full Code Here

TOP

Related Classes of quicktime.std.image.Matrix

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.