C# Class PhotoGalleryLibrary.Photo

Inheritance: IDisposable, ISerializable
Afficher le fichier Open project: mnarowski/inzynieria Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Photo() public méthode

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

Photo() public méthode

Constructor load photo from Image object
public Photo ( Image Photo ) : System
Photo Image Image object to load
Résultat System

Photo() public méthode

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

ResizeTo() public static méthode

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
Résultat Photo

ResizeTo() public méthode

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
Résultat void

ToString() public méthode

Method from class Object
public ToString ( ) : string
Résultat string

ZoomInAbout() public static méthode

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
Résultat Photo

ZoomInAbout() public méthode

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

ZoomInOut() public static méthode

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
Résultat Photo

ZoomOutAbout() public méthode

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