C# Class Ushahidi.Model.Models.Media

Inheritance: Common.MVC.Model
Mostrar archivo Open project: ushahidi/Ushahidi_WinMobile Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Download ( string sourceURL, string destinationFilePath ) : bool

Download image from server

Import ( string filePath, string directory, Size size ) : Media

Import Photo Into Media Directory

New ( string imageName, string thumbnailName ) : Media
Parse ( string xml ) : Media
ToString ( ) : string

Protected Methods

Method Description
CreateThumbnail ( string filePath, int widthOrHeight ) : Bitmap

Method Details

CreateThumbnail() protected static method

protected static CreateThumbnail ( string filePath, int widthOrHeight ) : Bitmap
filePath string
widthOrHeight int
return System.Drawing.Bitmap

Download() public static method

Download image from server
public static Download ( string sourceURL, string destinationFilePath ) : bool
sourceURL string source url
destinationFilePath string destination filepath
return bool

Import() public static method

Import Photo Into Media Directory
public static Import ( string filePath, string directory, Size size ) : Media
filePath string image path
directory string destination directory
size System.Drawing.Size image size
return Media

New() public static method

public static New ( string imageName, string thumbnailName ) : Media
imageName string
thumbnailName string
return Media

Parse() public static method

public static Parse ( string xml ) : Media
xml string
return Media

ToString() public method

public ToString ( ) : string
return string