All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.qd.ColorTable

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.util.QTHandleRef
                   |
                   +----quicktime.qd.ColorTable

public final class ColorTable
extends QTHandleRef
implements QuickTimeLib
When creating a PixMap for a particular graphics device, Color QuickDraw creates a ColorTable that defines the best colors available for the pixel image on that particular graphics device. refer to ColorTable in QuickDraw

See Also:
PixMap

Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Method Index

 o fromCompressionDialog(ImageCompressionDialog)
Gets the current color table or null to clear the current color table for a dialog.
 o fromImageDescription(ImageDescription)
Get the custom color table for an image.
 o fromMovie(Movie)
This method allows your application to get the color table of the movie.
 o fromPixMap(PixMap)
When creating a PixMap for a particular graphics device, Color QuickDraw creates a ColorTable that defines the best colors available for the pixel image on that particular graphics device.
 o getCtSeed()
Identifies a particular instance of a color table.
 o getCtSize()
Returns the number of colours in the colour table.
 o toString()
Print information about this object.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Methods

 o fromImageDescription
 public static ColorTable fromImageDescription(ImageDescription id) throws QTException
Get the custom color table for an image. If there is no CTable this returns null.

QuickTime::GetImageDescriptionCTable

Parameters:
id - the ImageDescription
See Also:
getCTable
 o fromMovie
 public static ColorTable fromMovie(Movie m) throws QTException
This method allows your application to get the color table of the movie.

QuickTime::GetMovieColorTable()

Parameters:
m - the movie to get the color table from
Returns:
a ColorTable object specifiying the current color table.
See Also:
getCTable
 o fromPixMap
 public static ColorTable fromPixMap(PixMap pm)
When creating a PixMap for a particular graphics device, Color QuickDraw creates a ColorTable that defines the best colors available for the pixel image on that particular graphics device. Note that a reference to the PixMap object will be maintained by the ColorTable object to prevent the PixMap from being garbage collected before the ColorTable.

Returns:
a ColorTable object
See Also:
PixMap
 o fromCompressionDialog
 public static ColorTable fromCompressionDialog(ImageCompressionDialog d) throws QTException
Gets the current color table or null to clear the current color table for a dialog.

QuickTime::SCGetInfo()

Returns:
the current color table or null if no color table being used.
See Also:
getInfoColorTable
 o getCtSeed
 public int getCtSeed()
Identifies a particular instance of a color table.

Returns:
an int
 o getCtSize
 public int getCtSize()
Returns the number of colours in the colour table.

 o toString
 public String toString()
Print information about this object.

Returns:
a string representing this ColorTable object
Overrides:
toString in class QTHandleRef

All Packages  Class Hierarchy  This Package  Previous  Next  Index