|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.comp.ComponentIdentifier | +--quicktime.std.comp.Component | +--quicktime.std.image.GraphicsImporter
Assists in managing still images. Allows display and manipulation of various types of image data. This is regardless of file format or compression used in the document. The QIF(QuickTime File Format, 'qtif') accepts gif, jfif, pict, photoshop, and sgi.rgb files. This class implements methods for a corresponding QuickTime ComponentInstance structure. refer to GraphicsImportComponent in QuickTime
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
GraphicsImporter(DataRef dataRef)
Determines and opens the component to use for the given data reference and data type. |
|
GraphicsImporter(DataRef dataRef,
int flags)
Locates and opens a graphics importer component that can be used to draw the specified dataRef. |
|
GraphicsImporter(int subType)
Opens the specified graphics import component,'grip', with the given subType. |
|
GraphicsImporter(QTFile file)
Determines and opens the graphics import component to use for the given file. |
|
GraphicsImporter(QTFile file,
int flags)
Determines and opens the graphics import component to use for the given file. |
Method Summary | |
int |
doesDrawAllPixels()
Determines if the GraphicsImporter will draw all the pixels that are contained in the image data that it is presenting. |
GraphicsImporterInfo |
doExportImageFileDialog(QTFile inDefaultSpec,
java.lang.String prompt)
Presents a dialog box letting the user save an image in a foreign file format. |
void |
draw()
Draws an image. |
void |
exportImageFile(int fileType,
int fileCreator,
QTFile theFile,
int scriptTag)
Saves an image in a foreign file format. |
static GraphicsImporter |
fromGraphicsExporter(GraphicsExporter ge)
Determines the GraphicsImporter that is the source for input images to graphics export component QuickTime::GraphicsExportGetInputGraphicsImporter |
QTHandle |
getAliasedDataReference()
Determines the aliased data reference. |
int |
getAliasedDataType()
Determines the aliased data type. |
Pict |
getAsPicture()
Creates a new Pict containing the image currently in use by this import component. |
QDRect |
getBoundsRect()
Determines the bounding rectangle for drawing. |
Region |
getClip()
Determines the current clipping region. |
QTFile |
getDataFile()
Determines the file that the graphics resides in. |
QTHandle |
getDataHandle()
Determines the data reference that the graphics resides in. |
int |
getDataOffset()
Determines the data offset. |
int[] |
getDataReferenceOffsetAndLimit()
Returns the data reference starting offset and data size limit. |
int |
getDataReferenceType()
Determines the type of the data reference that the graphics resides in. |
int |
getDataSize()
Determines the data size. |
Region |
getDefaultClip()
Returns the default matrix. |
GraphicsMode |
getDefaultGraphicsMode()
Returns the default graphics mode, if one is stored in the image. |
Matrix |
getDefaultMatrix()
Returns the default matrix. |
QDRect |
getDefaultSourceRect()
Returns the default source rect, if one is stored in the image. |
QDRect |
getDestRect()
Returns the destination rectangle. |
AtomContainer |
getExportImageTypeList()
Returns information about available export formats. |
AtomContainer |
getExportSettingsAsAtomContainer()
Returns the Export settings as an Atom Container. |
int |
getFlags()
Returns the current flags.. |
GraphicsMode |
getGraphicsMode()
Determines the graphics mode for an image. |
QDGraphics |
getGWorld()
Call this method to obtain the QDGraphics of the object. |
int |
getImageCount()
Returns the number of images in the image file. |
ImageDescription |
getImageDescription()
Determines the image description information. |
int |
getImageIndex()
Returns the current image index. |
Matrix |
getMatrix()
Determines the matrix to be used for drawing. |
UserData |
getMetaData(GraphicsImporter gi)
Gets metadata from an image file and adds it to a user data structure. |
AtomContainer |
getMIMETypeList()
Returns a list of MIME types supported by the graphics import component. |
QDRect |
getNaturalBounds()
Determines the bounding rectangle of an image. |
int |
getQuality()
Determines the image quality value. |
QDRect |
getSourceRect()
Determines the current source rectangle for an image. |
void |
readData(EncodedImage data,
int dataOffset,
int dataSize)
Reads image data. |
void |
saveAsPicture(QTFile file,
int scriptTag)
Creates a QuickDraw picture file. |
void |
saveAsQuickTimeImageFile(QTFile file,
int scriptTag)
Creates a QuickDraw image file. |
void |
setBoundsRect(QDRect bounds)
Defines the rectangle in which to draw an image. |
void |
setClip(Region clipRgn)
Defines the clipping region for drawing. |
void |
setDataFile(QTFile fileIn)
Specifies the file that the graphics resides in. |
void |
setDataHandle(QTHandleRef dataRef)
Specifies the data handle that the graphics resides in. |
void |
setDataReference(DataRef dataRef)
Specifies the data reference that the graphics resides in. |
void |
setDataReferenceOffsetAndLimit(int offset,
int limit)
Specifies the data reference starting offset and data size limit. |
void |
setDestRect(QDRect destRect)
Sets the destination rectangle. |
void |
setExportSettingsFromAtomContainer(AtomContainer qtAtomContainer)
Export settings from a QuickTime atom container. |
void |
setFlags(int flags)
Sets the current flags. |
void |
setGraphicsMode(GraphicsMode graphicsMode)
Sets the graphics mode and color for an image. |
void |
setGWorld(QDGraphics port,
GDevice gdh)
Call this method to give the client the QDGraphics object it should use to do its drawing. |
void |
setImageIndex(int imageIndex)
The default image index is 1. |
void |
setMatrix(Matrix matrix)
Defines the matrix to use for drawing. |
void |
setQuality(int quality)
Sets the image quality value. |
void |
setSourceRect(QDRect srcRect)
Sets the source rectangle to use for an image. |
boolean |
validate()
Determines if the current graphics importer data reference contains valid image data. |
Methods inherited from class quicktime.std.comp.Component |
count |
Methods inherited from class quicktime.std.comp.ComponentIdentifier |
find, find, getInfo, toString |
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 GraphicsImporter(int subType) throws QTException
subType
- The graphics import component sub typepublic GraphicsImporter(QTFile file) throws QTException
file
- Specifies the source file.public GraphicsImporter(QTFile file, int flags) throws QTException
file
- Specifies the source file.flags
- options passed in when opening the componentpublic GraphicsImporter(DataRef dataRef) throws QTException
dataRef
- Specifies the data reference.public GraphicsImporter(DataRef dataRef, int flags) throws QTException
dataRef
- Specifies the data reference.flags
- options passed in when opening the componentMethod Detail |
public static final GraphicsImporter fromGraphicsExporter(GraphicsExporter ge) throws QTException
public final void setDataReference(DataRef dataRef) throws StdQTException
dataRef
- Specifies the handle to a QuickTime data reference.public final int getDataReferenceType() throws StdQTException
public final void setDataFile(QTFile fileIn) throws QTException
fileIn
- Specifies the source file containing the graphics data.public final QTFile getDataFile() throws QTException
public final void setDataHandle(QTHandleRef dataRef) throws StdQTException
dataRef
- Specifies the handle to a QuickTime data reference.public final QTHandle getDataHandle() throws QTException
public final ImageDescription getImageDescription() throws StdQTException
public final int getDataOffset() throws StdQTException
public final int getDataSize() throws StdQTException
public final void readData(EncodedImage data, int dataOffset, int dataSize) throws StdQTException
data
- The EncodedImage that the data is read into.dataOffset
- Specifies the offset within the pointer where the data is placed. This offset is in bytes.dataSize
- Specifies the size of the data to be read.public final void setClip(Region clipRgn) throws StdQTException
clipRgn
- Specifies clipping region.public final Region getClip() throws QTException
public final void setSourceRect(QDRect srcRect) throws StdQTException
sourceRect
- Specifies source rectanglepublic final QDRect getSourceRect() throws StdQTException
public final QDRect getNaturalBounds() throws StdQTException
public final void draw() throws StdQTException
public final void setMatrix(Matrix matrix) throws StdQTException
matrix
- Specifies the drawing matrix.public final Matrix getMatrix() throws StdQTException
public final void setBoundsRect(QDRect bounds) throws StdQTException
bounds
- Specifies the bounding rectangle.public final QDRect getBoundsRect() throws StdQTException
public final void saveAsPicture(QTFile file, int scriptTag) throws QTException
file
- The destination output file of the compressed imagescriptTag
- Specifies the depth at which the image is to be compressed.public final void saveAsQuickTimeImageFile(QTFile file, int scriptTag) throws QTException
fss
- Specifies the destination file.scriptTag
- Specifiespublic final void setGraphicsMode(GraphicsMode graphicsMode) throws StdQTException
graphicsMode
- Specifies the graphics transfer mode.public final GraphicsMode getGraphicsMode() throws StdQTException
public final void setQuality(int quality) throws StdQTException
quality
- Specifies a quality CodecQ valuepublic final int getQuality() throws StdQTException
public final QTHandle getAliasedDataReference() throws QTException
public final int getAliasedDataType() throws StdQTException
public final void setGWorld(QDGraphics port, GDevice gdh) throws StdQTException
port
- a QDGraphics object or null to use current portgdh
- a GDevice object or null to use current devicepublic final QDGraphics getGWorld() throws StdQTException
public final boolean validate() throws StdQTException
public final int doesDrawAllPixels() throws StdQTException
public Pict getAsPicture() throws QTException
public UserData getMetaData(GraphicsImporter gi) throws QTException
public AtomContainer getMIMETypeList() throws StdQTException
public void exportImageFile(int fileType, int fileCreator, QTFile theFile, int scriptTag) throws QTException
fileType
- the file typefileCreator
- the fie creatortheFile
- the output file to write to.public final AtomContainer getExportImageTypeList() throws StdQTException
public final AtomContainer getExportSettingsAsAtomContainer() throws StdQTException
public final void setExportSettingsFromAtomContainer(AtomContainer qtAtomContainer) throws StdQTException
qtAtomContainer
- the atomcontainer with the export settings.public final GraphicsImporterInfo doExportImageFileDialog(QTFile inDefaultSpec, java.lang.String prompt) throws QTException
inDefaultSpec
- suggests the default name for the file. If you do not want to suggest a default name, pass null.prompt
- A prompt that appears in the standard put dialog box; it may be nil, in which case a default string is used.public final void setDataReferenceOffsetAndLimit(int offset, int limit) throws StdQTException
offset
- The byte offset of the image data from the beginning of the data reference.limit
- the offset of the byte following the last byte of the image data.public final int[] getDataReferenceOffsetAndLimit() throws StdQTException
public final int getImageCount() throws StdQTException
public final void setImageIndex(int imageIndex) throws StdQTException
imageIndex
- Specifies the image index.public final int getImageIndex() throws StdQTException
public final Matrix getDefaultMatrix() throws StdQTException
public final Region getDefaultClip() throws QTException
public final GraphicsMode getDefaultGraphicsMode() throws QTException
public final QDRect getDefaultSourceRect() throws QTException
public final void setDestRect(QDRect destRect) throws QTException
the
- dest Rectpublic final QDRect getDestRect() throws QTException
public final void setFlags(int flags) throws QTException
flags
- the flagpublic final int getFlags() throws QTException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |