C# Class PhotoGalleryLibrary.Photo

Inheritance: IDisposable, ISerializable
Show file Open project: mnarowski/inzynieria Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Photo ( ) : System

Private constructor to use by other constructors (not to use by library user)

Photo ( Image Photo ) : System

Constructor load photo from Image object

Photo ( string PathToPhoto ) : System

Constructor load photo from file.

ResizeTo ( Photo photo, int width, int height ) : Photo

Static method to resize Photo object

ResizeTo ( int width, int height ) : void

Method to resize ImageObject to new size (width, height)

ToString ( ) : string

Method from class Object

ZoomInAbout ( Photo photo, int percent ) : Photo

Static method to zoom in Photo object

ZoomInAbout ( int percent ) : void

Method to zoom in ImageObject

ZoomInOut ( Photo photo, int percent ) : Photo

Static method to zoom out Photo object

ZoomOutAbout ( int percent ) : void

Method to zoom out ImageObject

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Photo() public method

Private constructor to use by other constructors (not to use by library user)
public Photo ( ) : System
return System

Photo() public method

Constructor load photo from Image object
public Photo ( Image Photo ) : System
Photo Image Image object to load
return System

Photo() public method

Constructor load photo from file.
public Photo ( string PathToPhoto ) : System
PathToPhoto string Path to photo.
return System

ResizeTo() public static method

Static method to resize Photo object
public static ResizeTo ( Photo photo, int width, int height ) : Photo
photo Photo Photo object to resize
width int New photo's width
height int New photo's height
return Photo

ResizeTo() public method

Method to resize ImageObject to new size (width, height)
public ResizeTo ( int width, int height ) : void
width int New image's width
height int New image's height
return void

ToString() public method

Method from class Object
public ToString ( ) : string
return string

ZoomInAbout() public static method

Static method to zoom in Photo object
public static ZoomInAbout ( Photo photo, int percent ) : Photo
photo Photo Photo object to zoom in
percent int Percent by which zoom in the photo
return Photo

ZoomInAbout() public method

Method to zoom in ImageObject
public ZoomInAbout ( int percent ) : void
percent int Percent by which zoom in the photo
return void

ZoomInOut() public static method

Static method to zoom out Photo object
public static ZoomInOut ( Photo photo, int percent ) : Photo
photo Photo Photo object to zoom out
percent int Percent by which zoom out the photo
return Photo

ZoomOutAbout() public method

Method to zoom out ImageObject
public ZoomOutAbout ( int percent ) : void
percent int Percent by which zoom out the photo
return void