Method | Description | |
---|---|---|
CropImage ( int x, int y, int width, int height ) : Image |
Crops an image by giving the crop start x & y co-ordinates and then the height & width to crop to. Making a perfect rectangle of the crop area.
|
|
Image ( ) : System |
ctor, property free constructor, initiates the this.Image(file) passing in a null file reference
|
|
Image ( |
ctor, copys all the properties from the file object into the new object.
|
|
ModifyImage ( ) : Image |
accepts change requests for an image for rotate & flip
|
|
ResizeImage ( |
resizes the image to a new size. The image will be replaced
|
|
ResizeImage ( decimal Percent ) : Image |
resizes the image to a new size based on a percentage This may not be exactly to the percent as we must maintain aspect ratios. |
|
ResizeImageThumbnail ( int MaxSize, byte originalContents ) : byte[] |
Method | Description | |
---|---|---|
ArrayToBmp ( byte inArray ) : |
converts a byte array to a bitmap
|
|
BmpToArray ( |
converts a bitmap to an array
|
|
resizeImage ( System imgToResize, |
resizes an image to specific size
|
public CropImage ( int x, int y, int width, int height ) : Image | ||
x | int | the x co-ordinate |
y | int | the y co-ordinate |
width | int | the width to crop |
height | int | the height to crop |
return | Image |
public ResizeImage ( |
||
newSize | the new Size for the image | |
return | Image |
public ResizeImage ( decimal Percent ) : Image | ||
Percent | decimal | |
return | Image |
public static ResizeImageThumbnail ( int MaxSize, byte originalContents ) : byte[] | ||
MaxSize | int | |
originalContents | byte | |
return | byte[] |