C# Class ImageResizer4DotNet.Resizer

Mostra file Open project: keyvan/ImageResizer4DotNet

Public Methods

Method Description
HighBmp ( MemoryStream original, int width, int height ) : MemoryStream
HighJpeg ( MemoryStream original, int width, int height ) : MemoryStream
HighPng ( MemoryStream original, int width, int height ) : MemoryStream
LowBmp ( MemoryStream original, int width, int height ) : MemoryStream
LowJpeg ( MemoryStream original, int width, int height ) : MemoryStream
LowPng ( MemoryStream original, int width, int height ) : MemoryStream
NearestNeighborBmp ( MemoryStream original, int width, int height ) : MemoryStream
NearestNeighborJpeg ( MemoryStream original, int width, int height ) : MemoryStream
NearestNeighborPng ( MemoryStream original, int width, int height ) : MemoryStream
ResizeBmp ( MemoryStream original, int width, int height ) : MemoryStream
ResizeJpeg ( MemoryStream original, int width, int height ) : MemoryStream
ResizePng ( MemoryStream original, int width, int height ) : MemoryStream

Private Methods

Method Description
GetBitmapFrame ( MemoryStream original, int width, int height, BitmapScalingMode mode ) : System.Windows.Media.Imaging.BitmapFrame
GetBmpStream ( System.Windows.Media.Imaging.BitmapFrame photo ) : MemoryStream
GetJpegStream ( System.Windows.Media.Imaging.BitmapFrame photo ) : MemoryStream
GetPngStream ( System.Windows.Media.Imaging.BitmapFrame photo ) : MemoryStream
Resize ( System.Windows.Media.Imaging.BitmapFrame photo, int width, int height, BitmapScalingMode scalingMode ) : System.Windows.Media.Imaging.BitmapFrame

Method Details

HighBmp() public static method

public static HighBmp ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

HighJpeg() public static method

public static HighJpeg ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

HighPng() public static method

public static HighPng ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

LowBmp() public static method

public static LowBmp ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

LowJpeg() public static method

public static LowJpeg ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

LowPng() public static method

public static LowPng ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

NearestNeighborBmp() public static method

public static NearestNeighborBmp ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

NearestNeighborJpeg() public static method

public static NearestNeighborJpeg ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

NearestNeighborPng() public static method

public static NearestNeighborPng ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

ResizeBmp() public static method

public static ResizeBmp ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

ResizeJpeg() public static method

public static ResizeJpeg ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream

ResizePng() public static method

public static ResizePng ( MemoryStream original, int width, int height ) : MemoryStream
original System.IO.MemoryStream
width int
height int
return System.IO.MemoryStream