C# 클래스 BaconBuilder.Model.ImageManipulator

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

공개 메소드들

메소드 설명
ImageManipulator ( Bitmap bitmap ) : System

Constructor for the manipulator accepting a pre-created bitmap.

ImageManipulator ( string fileName ) : System

Constructor for the manipulator accepting a bitmap from file.

SaveImage ( string directory, string fileName ) : void

Saves the current image in the manipulator to a file.

SaveImage ( string directory, string fileName, ImageType type ) : void

Saves the current image in the manipulator to a file. Optional image format may be specified to output a certain image type.

ScaleImage ( Size size ) : void

Scales the size of an image to the given size. Does not preserve aspect ratio.

ScaleImage ( Size size, bool preserveAspectRatio ) : void

Scales the size of an image to the given size. Will optionally preserve aspect ratio and crop along one dimension if necessary to do so.

ScaleImage ( int width, int height ) : void

Scales the size of an image to the given width and height. Does not preserve aspect ratio.

ScaleImage ( int width, int height, bool preserveAspectRatio ) : void

Scales the size of an image to the given size. Will optionally preserve aspect ratio and crop along one dimension if necessary to do so.

비공개 메소드들

메소드 설명
GetImageFormatInfo ( ImageType imageType ) : ImageFormat>.Tuple

Gets the file extension and System.Drawing.Imaging.ImageFormat associated with the selected format type.

메소드 상세

ImageManipulator() 공개 메소드

Constructor for the manipulator accepting a pre-created bitmap.
public ImageManipulator ( Bitmap bitmap ) : System
bitmap System.Drawing.Bitmap The bitmap to perform manipulation on.
리턴 System

ImageManipulator() 공개 메소드

Constructor for the manipulator accepting a bitmap from file.
public ImageManipulator ( string fileName ) : System
fileName string
리턴 System

SaveImage() 공개 메소드

Saves the current image in the manipulator to a file.
public SaveImage ( string directory, string fileName ) : void
directory string Output directory.
fileName string Name of the output image.
리턴 void

SaveImage() 공개 메소드

Saves the current image in the manipulator to a file. Optional image format may be specified to output a certain image type.
public SaveImage ( string directory, string fileName, ImageType type ) : void
directory string Output directory.
fileName string Name of the output image.
type ImageType The desired output format of the image.
리턴 void

ScaleImage() 공개 메소드

Scales the size of an image to the given size. Does not preserve aspect ratio.
public ScaleImage ( Size size ) : void
size System.Drawing.Size The desired output image size.
리턴 void

ScaleImage() 공개 메소드

Scales the size of an image to the given size. Will optionally preserve aspect ratio and crop along one dimension if necessary to do so.
public ScaleImage ( Size size, bool preserveAspectRatio ) : void
size System.Drawing.Size The desired output image size.
preserveAspectRatio bool Whether to preserve the original aspect ration of the image or not.
리턴 void

ScaleImage() 공개 메소드

Scales the size of an image to the given width and height. Does not preserve aspect ratio.
public ScaleImage ( int width, int height ) : void
width int The desired output image width.
height int The desired output image height.
리턴 void

ScaleImage() 공개 메소드

Scales the size of an image to the given size. Will optionally preserve aspect ratio and crop along one dimension if necessary to do so.
public ScaleImage ( int width, int height, bool preserveAspectRatio ) : void
width int The desired output image width.
height int The desired output image height.
preserveAspectRatio bool Whether to preserve the original aspect ration of the image or not.
리턴 void