|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aviyehuda.easyimage.Image
public class Image
EasyImage lets you do all the basic image operations - converting, cropping, resizing, rotating, flipping… Plus it let’s you do some really cool affects. All is done super easily. Combining operations can produce some very cool results. Operations: Open image. Save image Convert image Re-size image Crop image Convert to black and white image Rotate image Flip image Add color to image Create image with multiple instance of the original Combining 2 images together Emphasize parts of the image Affine transform image
Constructor Summary | |
---|---|
Image(java.io.File imageFile)
Constructor - loads from an image file. |
|
Image(java.lang.String imageFilePath)
Constructor - loads from an image file. |
Method Summary | |
---|---|
void |
addColorToImage(java.awt.Color color,
int jump)
|
void |
addColorToImage(int rgb,
int jump)
|
void |
addPixelColor(int numToAdd)
Add color to the RGB of the pixel |
void |
affineTransform(double fShxFactor,
double fShyFactor)
|
void |
combineWithPicture(Image image2)
|
void |
combineWithPicture(Image image2,
java.awt.Color ignoreColor)
|
void |
combineWithPicture(Image image2,
int jump)
|
void |
combineWithPicture(Image image2,
int jump,
java.awt.Color ignoreColor)
|
void |
combineWithPicture(java.lang.String newImagePath)
Combines the image with another image in an equal presence to both; |
void |
combineWithPicture(java.lang.String newImagePath,
int jump)
Combines the image with another image. |
void |
convertToBlackAndWhite()
Covert image to black and white. |
void |
crop(int startX,
int startY,
int endX,
int endY)
|
void |
emphasize(int startX,
int startY,
int endX,
int endY)
|
void |
emphasize(int startX,
int startY,
int endX,
int endY,
java.awt.Color backgroundColor)
|
void |
emphasize(int startX,
int startY,
int endX,
int endY,
java.awt.Color backgroundColor,
int jump)
|
void |
emphasize(int startX,
int startY,
int endX,
int endY,
int jump)
|
void |
flipHorizontally()
Flips the image horizontally |
void |
flipVertically()
Flips the image vertically. |
java.awt.image.BufferedImage |
getAsBufferedImage()
Return image as java.awt.image.BufferedImage |
int |
getHeight()
|
int |
getWidth()
|
static void |
main(java.lang.String[] args)
|
void |
multiply(int timesToMultiplyVertically,
int timesToMultiplyHorizantelly)
Multiply the image. |
void |
multiply(int timesToMultiplyVertically,
int timesToMultiplyHorizantelly,
int colorToHenhancePerPixel)
Multiply the image and also add color each of the multiplied images. |
void |
resize(int percentOfOriginal)
Resizing the image by percentage of the original. |
void |
resize(int newWidth,
int newHeight)
Resizing the image by width and height. |
void |
rotate180()
Rotates image 180 degrees. |
void |
rotateLeft()
Rotates image 90 degrees to the left. |
void |
rotateRight()
Rotates image 90 degrees to the right. |
void |
save()
Saves the image to the original file. |
void |
saveAs(java.lang.String fileName)
Save the image as a new image file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Image(java.io.File imageFile)
imageFile
- public Image(java.lang.String imageFilePath)
imageFilePath
- Method Detail |
---|
public java.awt.image.BufferedImage getAsBufferedImage()
public void saveAs(java.lang.String fileName)
fileName
- public void save()
public void resize(int percentOfOriginal)
percentOfOriginal
- public void resize(int newWidth, int newHeight)
newWidth
- newHeight
- public void addPixelColor(int numToAdd)
numToAdd
- public void convertToBlackAndWhite()
public void rotateLeft()
public void rotateRight()
public void rotate180()
public void flipHorizontally()
public void flipVertically()
public void multiply(int timesToMultiplyVertically, int timesToMultiplyHorizantelly)
timesToMultiplyVertically
- timesToMultiplyHorizantelly
- public void multiply(int timesToMultiplyVertically, int timesToMultiplyHorizantelly, int colorToHenhancePerPixel)
timesToMultiplyVertically
- timesToMultiplyHorizantelly
- public void combineWithPicture(java.lang.String newImagePath)
newImagePath
- - image to combine withpublic void combineWithPicture(java.lang.String newImagePath, int jump)
newImagePath
- jump
- public void combineWithPicture(Image image2)
public void combineWithPicture(Image image2, int jump)
public void combineWithPicture(Image image2, java.awt.Color ignoreColor)
public void combineWithPicture(Image image2, int jump, java.awt.Color ignoreColor)
public void crop(int startX, int startY, int endX, int endY)
public void emphasize(int startX, int startY, int endX, int endY)
public void emphasize(int startX, int startY, int endX, int endY, java.awt.Color backgroundColor)
public void emphasize(int startX, int startY, int endX, int endY, int jump)
public void emphasize(int startX, int startY, int endX, int endY, java.awt.Color backgroundColor, int jump)
public void addColorToImage(java.awt.Color color, int jump)
public void addColorToImage(int rgb, int jump)
public void affineTransform(double fShxFactor, double fShyFactor)
public int getWidth()
public int getHeight()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |