C# Class PicasaWebSync.ImageResizer

Afficher le fichier Open project: bradyholt/picasawebsync Class Usage Examples

Méthodes publiques

Méthode Description
ResizeImage ( Bitmap &originalImage, int maxWidthPixels, int maxHeightPixels ) : Bitmap

Returns a new bitmap resized to fix a maximum size while still maintaining the correct aspect ratio.

ResizeImage ( Stream originalImageStream, ImageFormat format, int maxSizePixels ) : MemoryStream

Returns a stream containing a resized image with original aspect ratio.

Method Details

ResizeImage() public static méthode

Returns a new bitmap resized to fix a maximum size while still maintaining the correct aspect ratio.
public static ResizeImage ( Bitmap &originalImage, int maxWidthPixels, int maxHeightPixels ) : Bitmap
originalImage System.Drawing.Bitmap The image to resize.
maxWidthPixels int
maxHeightPixels int
Résultat System.Drawing.Bitmap

ResizeImage() public static méthode

Returns a stream containing a resized image with original aspect ratio.
public static ResizeImage ( Stream originalImageStream, ImageFormat format, int maxSizePixels ) : MemoryStream
originalImageStream Stream The image to resize.
format System.Drawing.Imaging.ImageFormat The image format.
maxSizePixels int The maximum allowed height or width in pixels.
Résultat System.IO.MemoryStream