Package quicktime.qd

Examples of quicktime.qd.QDGraphics


/*     */   QTImageProducer(Presentable paramPresentable, Dimension paramDimension) throws QTException {
/*  87 */     this.qtSource = paramPresentable;
/*  88 */     setRedrawing(requiresRedrawing(paramPresentable));
/*  89 */     this.singleFrame = (!isRedrawing());
/*  90 */     this.size = paramDimension;
/*  91 */     this.gw = new QDGraphics(new QDRect(this.size));
/*  92 */     paramPresentable.setDisplayBounds(new QDRect(this.size));
/*  93 */     paramPresentable.setGWorld(this.gw);
/*  94 */     this.pm = this.gw.getPixMap();
/*  95 */     this.rowInts = (this.pm.getRowBytes() / 4);
/*  96 */     this.pixels = new int[this.rowInts * this.size.height];
 
View Full Code Here


/*     */
/*     */   /** @deprecated */
/*     */   public int export(GraphicsExporter paramGraphicsExporter)
/*     */     throws QTException
/*     */   {
/* 185 */     QDGraphics localQDGraphics = new QDGraphics(getDescription(), 0);
/*     */
/* 187 */     return export(paramGraphicsExporter, localQDGraphics);
/*     */   }
View Full Code Here

/*     */     }
/* 204 */     if (!paramQDGraphics.isOffscreen()) {
/* 205 */       throw new QTAppException("QTImageDrawer.export must be supplied an offscreen QDGraphics");
/*     */     }
/*     */
/* 208 */     QDGraphics localQDGraphics = getGWorld();
/*     */
/* 211 */     setGWorld(paramQDGraphics);
/* 212 */     redraw(null);
/*     */
/* 215 */     setGWorld(localQDGraphics);
View Full Code Here

/*     */   /** @deprecated */
/*     */   public static ImagePresenter fromGraphicsImporterDrawer(GraphicsImporterDrawer paramGraphicsImporterDrawer)
/*     */     throws IOException, QTException
/*     */   {
/*  73 */     QDRect localQDRect = new QDRect(paramGraphicsImporterDrawer.getDisplayBounds().getWidth(), paramGraphicsImporterDrawer.getDisplayBounds().getHeight());
/*  74 */     QDGraphics localQDGraphics = new QDGraphics(localQDRect);
/*  75 */     paramGraphicsImporterDrawer.setDisplayBounds(localQDRect);
/*  76 */     paramGraphicsImporterDrawer.setGWorld(localQDGraphics);
/*  77 */     paramGraphicsImporterDrawer.redraw(null);
/*  78 */     return fromGWorld(localQDGraphics);
/*     */   }
View Full Code Here

/* 222 */     if ((paramEncodedImage != null) &&
/* 223 */       (this.optimiseRedraw)) if (((i == 1919706400) || (i == 1918990112) || (i == 1902408311) || (i == 1885434984) || (ICMPixelFormatInfo.isValidPixelFormat(i)) ? 1 : 0) == 0)
/*     */       {
/* 229 */         Object localObject1 = null;
/*     */         try {
/* 231 */           QDGraphics localQDGraphics = new QDGraphics(new QDRect(paramImageDescription.getWidth(), paramImageDescription.getHeight()));
/* 232 */           DSequence localDSequence = new DSequence(paramImageDescription, localQDGraphics, null, null, null, 0, 768, CodecComponent.anyCodec);
/*     */
/* 240 */           localDSequence.decompressFrameS(paramEncodedImage, 0);
/* 241 */           PixMap localPixMap = localQDGraphics.getPixMap();
/* 242 */           this.mImageDescription = new ImageDescription(localPixMap);
/* 243 */           paramEncodedImage = localPixMap.getPixelData();
/*     */         } catch (QTException localQTException) {
/* 245 */           this.mImageDescription = paramImageDescription;
/*     */         } finally {
View Full Code Here

/*     */   }
/*     */
/*     */   public final QDGraphics getPort()
/*     */     throws QTUnknownOSException, NativeGraphicsException
/*     */   {
/* 247 */     QDGraphics localQDGraphics = null;
/* 248 */     if (isVisible()) {
/* 249 */       localQDGraphics = this.ng != null ? this.ng.getGWorld() : null;
/*     */     }
/* 251 */     return localQDGraphics == null ? QDGraphics.scratch : localQDGraphics;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public void paint(Graphics paramGraphics)
/*     */   {
/* 641 */     if ((isValid()) && (this.qtcHelper != null)) {
/* 642 */       QDGraphics localQDGraphics = null;
/* 643 */       Region localRegion = null;
/*     */       try
/*     */       {
/* 646 */         if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 647 */           localQDGraphics = getPort();
/* 648 */           localRegion = localQDGraphics.getClip();
/* 649 */           localQDGraphics.clipRect();
/*     */         }
/* 651 */         if ((this.movie != null) || (this.graphicsImporter != null) || (this.grabber != null)) {
/* 652 */           this.qtcHelper.doSetBounds();
/* 653 */           if (!this.qtcHelper.getGWorld().equals(QDGraphics.scratch)) {
/* 654 */             QTUtils.checkFreeMemory();
/* 655 */             this.qtcHelper.redraw(null);
/* 656 */           } else if (isShowing()) {
/* 657 */             QTUtils.checkFreeMemory();
/* 658 */             this.qtcHelper.redraw(null);
/*     */           }
/*     */         }
/*     */       } catch (QTException localQTException) {
/*     */       }
/*     */       finally {
/* 664 */         if ((localQDGraphics != null) && (localRegion != null))
/* 665 */           localQDGraphics.setClip(localRegion);
/*     */       }
/*     */     } else {
/* 668 */       doParentLayout();
/* 669 */       repaint();
/*     */     }
View Full Code Here

/* 252 */       boolean bool = false;
/*     */
/* 254 */       QTImageProducer localQTImageProducer = (QTImageProducer)paramImageProducer;
/*     */
/* 256 */       Dimension localDimension = localQTImageProducer.getSize();
/* 257 */       QDGraphics localQDGraphics = localQTImageProducer.getGWorld();
/* 258 */       this.gw = localQDGraphics;
/*     */
/* 260 */       BufferedImage localBufferedImage = MacDirectColorModel.GetWrappedGWorldImage(QTObject.ID(localQDGraphics), 32, localDimension.width, localDimension.height, bool);
/*     */
/* 262 */       return localBufferedImage;
View Full Code Here

/*     */
/*     */   /** @deprecated */
/*     */   public QTEffectPresenter(QTEffect paramQTEffect)
/*     */     throws QTException
/*     */   {
/*  59 */     this(paramQTEffect, new QDGraphics(32, paramQTEffect.getDisplayBounds(), 4096));
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   void doSetGWorld(boolean paramBoolean)
/*     */     throws QTException
/*     */   {
/*     */     QDGraphics localQDGraphics1;
/* 461 */     if ((paramBoolean) && (this.canvas.getPeer() != null))
/* 462 */       localQDGraphics1 = this.canvas.getPort();
/*     */     else {
/* 464 */       localQDGraphics1 = QDGraphics.scratch;
/*     */     }
/* 466 */     if (this.canvas.movieController != null) {
/* 467 */       MovieController localMovieController = this.canvas.movieController;
/* 468 */       QDGraphics localQDGraphics2 = localMovieController.getPort();
/* 469 */       if (!localQDGraphics1.equals(localQDGraphics2))
/*     */       {
/* 471 */         setControllerGWorld(localMovieController, localQDGraphics1);
/*     */       }
/* 473 */     } else if (this.canvas.movie != null)
View Full Code Here

TOP

Related Classes of quicktime.qd.QDGraphics

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.