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
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
fromCompressionDialog(ImageCompressionDialog)
- Gets the current color table or null to clear the current color table for a dialog.
-
fromImageDescription(ImageDescription)
- Get the custom color table for an image.
-
fromMovie(Movie)
- This method allows your application to get the color table of the movie.
-
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.
-
getCtSeed()
- Identifies a particular instance of a color table.
-
getCtSize()
- Returns the number of colours in the colour table.
-
toString()
- Print information about this object.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
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
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
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
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
getCtSeed
public int getCtSeed()
- Identifies a particular instance of a color table.
- Returns:
- an int
getCtSize
public int getCtSize()
- Returns the number of colours in the colour table.
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