public class WOWZCropDimensions
extends java.lang.Object
| Constructor and Description |
|---|
WOWZCropDimensions()
The default constructor.
|
WOWZCropDimensions(WOWZCropDimensions other)
Creates and initializes an instance using the property values from the specified instance.
|
WOWZCropDimensions(WOWZSize srcSize,
WOWZSize destSize)
Creates and initializes an instance by specifying the source and destination rectangle sizes.
|
WOWZCropDimensions(WOWZSize srcSize,
WOWZSize destSize,
int scaleMode)
Creates and initializes an instance by specifying the source and destination rectangle sizes and scale mode.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
WOWZPoint |
getCenterPoint()
Gets the center point of the destination rectangle.
|
WOWZSize |
getDestSize()
Gets the dimensions of the destination rectangle.
|
WOWZPoint |
getOffset()
Gets the offset of the bottom left of the source rectangle within the destination.
|
WOWZSize |
getScaledSize()
Gets the dimensions of the source rectangle after the scale mode has been applied.
|
int |
getScaleMode()
Gets the scaling mode used for the placement calculation.
|
float |
getScaleX()
Gets the scaling factor applied to the width of the source rectangle.
|
float |
getScaleY()
Gets the scaling factor applied to the height of the source rectangle.
|
WOWZSize |
getSrcSize()
Gets the dimensions of the source rectangle.
|
void |
set(WOWZCropDimensions other)
Updates the property values of this instance with the property values from the specified instance.
|
void |
setDestSize(WOWZSize destSize)
Updates the dimensions of the destination rectangle and recalculates its size.
|
void |
setScaleMode(int scaleMode)
Sets the scaling mode.
|
void |
setSrcSize(WOWZSize srcSize)
Updates the dimensions of the source rectangle.
|
java.lang.String |
toString()
Gets a human-readable description of this instance.
|
public WOWZCropDimensions(WOWZSize srcSize, WOWZSize destSize, int scaleMode)
srcSize - The dimensions of the source rectangle.destSize - The dimensions of the destination rectangle.public WOWZCropDimensions(WOWZCropDimensions other)
other - The instance to use.public WOWZCropDimensions()
public void set(WOWZCropDimensions other)
other - The instance with the property values to use.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void setSrcSize(WOWZSize srcSize)
srcSize - The dimensions of the source rectangle.public WOWZSize getSrcSize()
public void setDestSize(WOWZSize destSize)
destSize - The dimensions of the destination rectangle.public WOWZSize getDestSize()
public void setScaleMode(int scaleMode)
scaleMode - The scaling mode used for the placement calculation, either WOWZMediaConfig.RESIZE_TO_ASPECT or WOWZMediaConfig.FILL_VIEW.public int getScaleMode()
WOWZMediaConfig.RESIZE_TO_ASPECT or WOWZMediaConfig.FILL_VIEW.public WOWZPoint getOffset()
public WOWZSize getScaledSize()
public float getScaleX()
public float getScaleY()
public WOWZPoint getCenterPoint()
public java.lang.String toString()
toString in class java.lang.Object© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal