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.
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
OpenCPicParams(QDRect)
- The OpenCPicParams as a new object.
-
OpenCPicParams(QDRect, float, float)
- The OpenCPicParams as a new object.
-
clone()
- Return a copy of the OpenCPicParams.
-
getHRes()
- Gets the horizontal resolution.
-
getSrcRect()
- Gets the bounding rectangle of the picture.
-
getVRes()
- Gets the vertical resolution.
-
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
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
OpenCPicParams
public OpenCPicParams(QDRect srcRect)
- The OpenCPicParams as a new object.
getSrcRect
public QDRect getSrcRect()
- Gets the bounding rectangle of the picture.
- Returns:
- The bounding rectangle.
getHRes
public float getHRes()
- Gets the horizontal resolution.
- Returns:
- The horizontal resolution of the picture.
getVRes
public float getVRes()
- Gets the vertical resolution.
- Returns:
- The vertical resolution of the picture.
clone
public Object clone()
- Return a copy of the OpenCPicParams.
- Overrides:
- clone in class Object
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