|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.util.QTHandleRef
|
+--quicktime.qd.Pict
The Pict class represents sequences of drawing commands, while providing a common medium for sharing image data. Methods are implemented for a corresponding QuickDraw structure used by QuickTime. refer to Pictures in QuickDraw
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Fields inherited from interface quicktime.jdirect.QTStreamingLib |
JDirect_MacOSX, libraryInstance |
| Constructor Summary | |
Pict(byte[] pictBytes)
Create a Pict object from an array of bytes. |
|
| Method Summary | |
void |
close()
Completes the collection of drawing commands and picture comments that define your picture. |
Pict |
compress(int quality,
int cType)
This allows your application to compress a single-frame image stored as a picture. |
void |
draw(QDGraphics cg,
QDRect frameRect)
To draw a picture on any type of output device. |
void |
drawTrimmed(QDGraphics cg,
QDRect frameRect,
Region trimMask,
int doDither)
Allows the drawing of an image that is stored as a picture. |
Pict |
fCompress(int colorDepth,
int quality,
int doDither,
int compressAgain,
int cType,
int codec)
This allows your application to compress a single-frame image with more variance that stored as a picture. |
static Pict |
fromFile(java.io.File file)
Opens a PICT that is stored in the file. |
static Pict |
fromGraphicsExporter(GraphicsExporter ge)
Creates a new Pict containing the image currently in use by this import component. |
static Pict |
fromGraphicsImporter(GraphicsImporter gi)
Creates a new Pict containing the image currently in use by this import component. |
static Pict |
fromImageCompressionDialog(ImageCompressionDialog icd,
Pict src)
Compresses a Pict returning a new Pict. |
static Pict |
fromMovie(Movie m)
This method creates a picture that contains a movie's poster. |
static Pict |
fromMovie(Movie m,
int time)
This method creates a picture from the specified movie at the specified time. |
static Pict |
fromPresentation(Presentation p,
Stream s)
This method creates a picture that contains a representation of the presentation returns a PicHandle object for the image. |
static Pict |
fromSequenceGrabber(SequenceGrabber sg,
QDRect bounds,
int offscreenDepth,
int grabPictFlags)
Provides a simple interface to obtain a QuickDraw picture from a sequence grabber component. |
static Pict |
fromTrack(Track t,
int time)
This method creates a QuickDraw picture from the specified track at the specified time. |
QDRect |
getPictFrame()
Returns the picture frame rectangle referenced of the Pict. |
boolean |
isOpen()
Returns true if the pict is open for recording drawing operations. |
Pict |
makeThumbnail(int colorDepth)
This allows your application to create an 80-by-80 pixel thumbnail picture from a specified picture. |
static Pict |
open(QDGraphics port,
OpenCPicParams params)
Use OpenCPicture to begin defining a picture, collecting all of your subsequent drawing commands in this record. |
static Pict |
thumbnailFromQDGraphics(QDGraphics qd,
QDRect src,
int colorDepth)
Creates an 80-by-80 pixel thumbnail picture from the pixmap associated with this QDGraphics. |
RawEncodedImage |
toEncodedImage()
Returns a version of the Pict as an EncodedImage object. |
java.lang.String |
toString()
Print information about this object. |
void |
writeToFile(java.io.File file)
Write out the Pict to the specified file. |
| Methods inherited from class quicktime.util.QTHandleRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, fromCompressionDialogState, fromSCSequence, getBytes, getSize, inMemory, isLocked, lock, lockHigh, moveHigh, toQTPointer, toQTPointer, unlock |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Pict(byte[] pictBytes)
throws QTException
pictBytes - the bytes of the pict handle| Method Detail |
public static Pict thumbnailFromQDGraphics(QDGraphics qd,
QDRect src,
int colorDepth)
throws QTException
qd - the QDGraphics from which to make the thumbnailsrc - a QDRect object defining the portion of the image to use for the thumbnailcolorDepth - specifies the depth at which the image is likely to be viewed
public static Pict fromTrack(Track t,
int time)
throws QTException
t - the track objecttime - Specifies the track image for the picture. The time parameter contains the time from which the image is taken.Track.getPict(int)
public static Pict fromMovie(Movie m,
int time)
throws QTException
time - contains the time from which the image is taken.m - the Movie objectMovie.getPict(int)
public static Pict fromMovie(Movie m)
throws QTException
m - the Movie objectMovie.getPosterPict()
public static Pict fromPresentation(Presentation p,
Stream s)
throws QTException
p - the Presentation objects - the stream objectPresentation.getPicture(quicktime.streaming.Stream)
public static Pict fromSequenceGrabber(SequenceGrabber sg,
QDRect bounds,
int offscreenDepth,
int grabPictFlags)
throws QTException
bounds - The bounding rectangle.offscreenDepth - The bit depth of the Pict.grabPictFlags - The flags for the operation.SequenceGrabber.grabPict(quicktime.qd.QDRect, int, int)
public static Pict fromGraphicsImporter(GraphicsImporter gi)
throws QTException
GraphicsImporter.getAsPicture()
public static Pict fromGraphicsExporter(GraphicsExporter ge)
throws QTException
GraphicsExporter.getInputPicture()
public static Pict fromImageCompressionDialog(ImageCompressionDialog icd,
Pict src)
throws QTException
src - the source Pict.ImageCompressionDialog.compressPicture(quicktime.qd.Pict)
public static Pict fromFile(java.io.File file)
throws QTException,
java.io.IOException
file - the PICT file
public static Pict open(QDGraphics port,
OpenCPicParams params)
throws QTException
port - the port which the open picture will record operations fromparams - the parameters for the new Pictpublic QDRect getPictFrame()
public boolean isOpen()
public void close()
throws QDException
public Pict compress(int quality,
int cType)
throws QTException
quality - Specifies the desired compressed image qualitycType - Specifies the compressor type
public Pict fCompress(int colorDepth,
int quality,
int doDither,
int compressAgain,
int cType,
int codec)
throws QTException
colorDepth - Specifies the depth at which the image is to be compressed
// * @param clut Specifies the custom color lookup table. Uses source color table only.quality - Specifies the desired compressed image qualitydoDither - Specifies whether to dither or notcompressAgain - Indicates whether to recompress compressed image data in the picturecType - Specifies the compressor typecodec - Specifies the compression indentifier
public void draw(QDGraphics cg,
QDRect frameRect)
throws QTException
cg - Specified graph port on which it will be drawn. This may NOT be null.frameRect - Specified rectangle with the coordinates in which to draw the picture.
public void drawTrimmed(QDGraphics cg,
QDRect frameRect,
Region trimMask,
int doDither)
throws QTException
cg - Specified graph port on which it will be drawn. This may NOT be null.frameRect - Specifies the rectangle into which the decompressed image is to be loadedtrimMask - Specifies the destination clipping regiondoDither - Specifies whether to dither or not
public Pict makeThumbnail(int colorDepth)
throws QTException
colorDepth - Specifies the desired depth at which the image is likely to be viewed
public RawEncodedImage toEncodedImage()
throws QDException
public void writeToFile(java.io.File file)
throws QDException,
java.io.IOException
file - the destination file that the Pict will be written to.public java.lang.String toString()
toString in class QTHandleRef
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||