Ignore:
Timestamp:
Sep 20, 2010, 8:51:41 PM (14 years ago)
Author:
mlg
Message:

Translation of the comments
French -> English

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/transverse/util/ImagesUtil.java

    r6958 r6980  
    6565
    6666    /**
    67      * Fonction de rotation d'une image
    68      * @param image l'image à tourner
    69      * @param angle l'angle de rotation
    70      * @return l'image pivotée
     67     * rotates an image
     68     * @param image the image to rotate
     69     * @param angle the angle of rotation
     70     * @return the rotated image
    7171     */
    7272    public static BufferedImage rotate(BufferedImage image, double angle) {
     
    9494
    9595    /**
    96      * Ecriture d'une image dans un fichier png
    97      * @param file le fichier
    98      * @param bufferedImage l'image
     96     * Writes an image in a file
     97     * @param file the file
     98     * @param bufferedImage the image
    9999     * @throws IOException
    100100     */
     
    104104
    105105    /**
    106      * Mise à l'échelle d'une image
    107      * @param filePath le chemin vers le fichier de l'image
    108      * @param tempName le nom du fichier résultat
    109      * @param width la largeur
    110      * @param height la hauteur
    111      * @return true si l'image a effectivement ete redimensionnee
     106     * scales an image
     107     * @param filePath the path to the file of the image
     108     * @param tempName the name of the resulting file
     109     * @param width the width
     110     * @param height the height
     111     * @return true if successful
    112112     * @throws Exception
    113113     */
     
    120120        int imageWidth = image.getWidth(null);
    121121        int imageHeight = image.getHeight(null);
    122         //on n'agrandit pas l'image
    123122        if (imageWidth < width || imageHeight < height) {
    124123            return false;
     
    141140    }
    142141
     142    /**
     143     * Save an image
     144     * @param fileName the name of the file
     145     * @param img the img
     146     * @throws FileNotFoundException
     147     * @throws IOException
     148     */
    143149    private static void saveImage(String fileName, BufferedImage img) throws FileNotFoundException, IOException {
    144150        Iterator iter = ImageIO.getImageWritersByFormatName("jpeg");
     
    205211    }
    206212
    207     // This method returns true if the specified image has transparent pixels
     213    /**
     214     *  This method returns true if the specified image has transparent pixels
     215     * @param image the image to check
     216     * @return true or false
     217     */
    208218    public static boolean hasAlpha(Image image) {
    209219        // If buffered image, the color model is readily available
Note: See TracChangeset for help on using the changeset viewer.