Class to describe the size of a Photo from Flickr.
Photo, Flashr.photosGetSizes, Photo.getLargestAvailableSize
This code and documentation is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0. http://creativecommons.org/licenses/by-nc-sa/2.0/
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0.5.0
Kelvin Luck < kelvin at kelvinluck dot com >
$Id: PhotoSize.as 72 2006-09-01 00:33:02Z kluck $
| com. kelvinluck. flashr. core. PhotoSize | Class to describe the size of a Photo from Flickr. |
| photo | The photo that this PhotoSize is associated with |
| label | This photo size’s label. |
| width | This Photo’s width. |
| height | This Photo’s height. |
| source | This photo size’s source. |
| url | This photo size’s url. |
| maxDimension | The maximum length of a side of this PhotoSize |
| orientation | Whether this size is PORTRAIT, LANDSCAPE or SQUARE |
| PORTRAIT | Static variable representing portrait pictures |
| LANDSCAPE | Static variable representing landscape pictures |
| SQUARE | Static variable representing square pictures |
| PhotoSize | Constructor function - creates a new PhotoSize object. |
| getOrientationString | Gets a human readable representation of the orientation of this PhotoSize |
public var width: Number
This Photo’s width.
public var height: Number
This Photo’s height.
public var maxDimension: Number
The maximum length of a side of this PhotoSize
The photo that this PhotoSize is associated with
public var photo: Photo
This photo size’s label.
public var label: String
This Photo’s width.
public var width: Number
This Photo’s height.
public var height: Number
This photo size’s source.
public var source: String
This photo size’s url.
public var url: String
The maximum length of a side of this PhotoSize
public var maxDimension: Number
Constructor function - creates a new PhotoSize object.
function PhotoSize( photo: Photo, label: String, width: Number, height: Number )
Whether this size is PORTRAIT, LANDSCAPE or SQUARE
public var orientation: Number
Static variable representing portrait pictures
public static var PORTRAIT: Number
Static variable representing landscape pictures
public static var LANDSCAPE: Number
Static variable representing square pictures
public static var SQUARE: Number
Gets a human readable representation of the orientation of this PhotoSize
function getOrientationString():String
Calls flickr.photos.getRecent to get the available sizes for a photo.
function photosGetSizes ( photoId: String ):FlashrRequest
Use to get the biggest available version of this Photo.
function getLargestAvailableSize( maxDimension: Number ):PhotoSize