C# 클래스 PicasaWebSync.ImageResizer

파일 보기 프로젝트 열기: bradyholt/picasawebsync 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ResizeImage() 공개 정적인 메소드

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
리턴 System.Drawing.Bitmap

ResizeImage() 공개 정적인 메소드

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.
리턴 System.IO.MemoryStream