All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.qd.OpenCPicParams

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.qd.OpenCPicParams

public final class OpenCPicParams
extends QTByteObject
implements PrimitivesLib, Cloneable
Provides information about a picture image relating to the source rectangle, horizontal and vertical resolution of the image. The OpenCPicParams implements methods for a corresponding QuickDraw structure. Its methods offer access to the structure and its fields.


Variable Index

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

Constructor Index

 o OpenCPicParams(QDRect)
The OpenCPicParams as a new object.
 o OpenCPicParams(QDRect, float, float)
The OpenCPicParams as a new object.

Method Index

 o clone()
Return a copy of the OpenCPicParams.
 o getHRes()
Gets the horizontal resolution.
 o getSrcRect()
Gets the bounding rectangle of the picture.
 o getVRes()
Gets the vertical resolution.
 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

Constructors

 o OpenCPicParams
 public OpenCPicParams(QDRect srcRect,
                       float hRes,
                       float vRes)
The OpenCPicParams as a new object.

Parameters:
QDRect - the dimensions of the picture in pixels
hRes - the horizotal resolution e.g 72 dpi.
vRes - the vertical resolution e.g 72 dpi
 o OpenCPicParams
 public OpenCPicParams(QDRect srcRect)
The OpenCPicParams as a new object.

Methods

 o getSrcRect
 public QDRect getSrcRect()
Gets the bounding rectangle of the picture.

Returns:
The bounding rectangle.
 o getHRes
 public float getHRes()
Gets the horizontal resolution.

Returns:
The horizontal resolution of the picture.
 o getVRes
 public float getVRes()
Gets the vertical resolution.

Returns:
The vertical resolution of the picture.
 o clone
 public Object clone()
Return a copy of the OpenCPicParams.

Overrides:
clone in class Object
 o toString
 public String toString()
Print information about this object.

Returns:
a string representing this object
Overrides:
toString in class QTByteObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index