메소드 | 설명 | |
---|---|---|
ImageManipulator ( |
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 ( |
Scales the size of an image to the given size. Does not preserve aspect ratio.
|
|
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.
|
|
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.
|
public ImageManipulator ( |
||
bitmap | The bitmap to perform manipulation on. | |
리턴 | System |
public ImageManipulator ( string fileName ) : System | ||
fileName | string | |
리턴 | System |
public SaveImage ( string directory, string fileName ) : void | ||
directory | string | Output directory. |
fileName | string | Name of the output image. |
리턴 | void |
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 |
public ScaleImage ( |
||
size | The desired output image size. | |
리턴 | void |
public ScaleImage ( |
||
size | The desired output image size. | |
preserveAspectRatio | bool | Whether to preserve the original aspect ration of the image or not. |
리턴 | void |
public ScaleImage ( int width, int height ) : void | ||
width | int | The desired output image width. |
height | int | The desired output image height. |
리턴 | void |
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 |