Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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. | |
return | System |
public ImageManipulator ( string fileName ) : System | ||
fileName | string | |
return | System |
public SaveImage ( string directory, string fileName ) : void | ||
directory | string | Output directory. |
fileName | string | Name of the output image. |
return | 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. |
return | void |
public ScaleImage ( |
||
size | The desired output image size. | |
return | void |
public ScaleImage ( |
||
size | The desired output image size. | |
preserveAspectRatio | bool | Whether to preserve the original aspect ration of the image or not. |
return | void |
public ScaleImage ( int width, int height ) : void | ||
width | int | The desired output image width. |
height | int | The desired output image height. |
return | 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. |
return | void |