All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.qd.PixMap

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

public final class PixMap
extends QTHandleRef
implements QuickTimeLib
A pixel map contains information about the dimensions and contents of a pixel image, as well as information on the image's storage format, depth, resolution and color usage. Refer to PixMap in QuickDraw


Variable Index

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

Method Index

 o fromGDevice(GDevice)
A PixMap object which describes the pixels in a GDevice.
 o fromQDGraphics(QDGraphics)
A PixMap object which describes the pixels in the QDGraphics.
 o getBounds()
The boundary rectangle, which links the local coordinate system of a graphics port to QuickDraw's global coordinate system and defines the area of the bit image into which QuickDraw can draw.
 o getColorTable()
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 getPixelData()
Returns the actual Pixel data itself.
 o getPixelFormat()
Returns the pixel format of this PixMap
 o getPixelSize()
Return the size (how many bits) of each pixel in the pixel data
 o getRowBytes()
Return the number of bytes each row of the pixel data makes up.
 o isOffscreen()
Returns true if the pixel data is from an offscreen GWorld or false if it is from an onscreen CGrafPort
 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 fromQDGraphics
 public static PixMap fromQDGraphics(QDGraphics g)
A PixMap object which describes the pixels in the QDGraphics.

QuickTime::GetGWorldPixMap()

Parameters:
g - the QDGraphics object
Returns:
a PixMap object
See Also:
getPixMap
 o fromGDevice
 public static PixMap fromGDevice(GDevice g)
A PixMap object which describes the pixels in a GDevice.

Parameters:
g - the GDevice object
Returns:
a PixMap object
 o isOffscreen
 public boolean isOffscreen()
Returns true if the pixel data is from an offscreen GWorld or false if it is from an onscreen CGrafPort

 o getRowBytes
 public int getRowBytes()
Return the number of bytes each row of the pixel data makes up.

Returns:
the byte length in each row
 o getPixelSize
 public int getPixelSize()
Return the size (how many bits) of each pixel in the pixel data

Returns:
pixel size
 o getPixelFormat
 public int getPixelFormat()
Returns the pixel format of this PixMap

 o getPixelData
 public RawEncodedImage getPixelData()
Returns the actual Pixel data itself. This can then be passed around in ICM calls that deal with pixel data.

Returns:
the pixels
 o getBounds
 public QDRect getBounds()
The boundary rectangle, which links the local coordinate system of a graphics port to QuickDraw's global coordinate system and defines the area of the bit image into which QuickDraw can draw.

Returns:
a QDRect object representing the bounds of the PixMap
 o getColorTable
 public ColorTable getColorTable()
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:
ColorTable
 o toString
 public String toString()
Print information about this object.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index