CloneSet1034


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.963method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1579
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java
2596
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
79
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java

/**
 * Encode the image in a specific format.
 *
 * @param image  The image to be encoded.
 * @param format  The {@link ImageFormat} to use.
 * @param encodeAlpha  Whether to encode alpha transparency (not supported 
 *                     by all ImageEncoders).
 * @return The byte[] that is the encoded image.
 * @throws IOException
 */
public static byte[] encode(BufferedImage image, String format, boolean encodeAlpha) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, encodeAlpha);
  return imageEncoder.encode(image);
}


First
Previous
Clone Instance
2
Line Count
5
Source Line
96
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java

/**
 * Encode the image in a specific format.
 *
 * @param image  The image to be encoded.
 * @param format  The {@link ImageFormat} to use.
 * @param quality  The quality to use for the image encoding (not supported
 *                 by all ImageEncoders).
 * @return The byte[] that is the encoded image.
 * @throws IOException
 */
public static byte[] encode(BufferedImage image, String format, float quality) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, quality);
  return imageEncoder.encode(image);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Encode the image in a specific format.
     *
     * @param image  The image to be encoded.
     * @param format  The {@link ImageFormat} to use.
     * @param quality  The quality to use for the image encoding (not supported
     *                 by all ImageEncoders).
     * @return The byte[] that is the encoded image.
     * @throws IOException
     */
/**
     * Encode the image in a specific format.
     *
     * @param image  The image to be encoded.
     * @param format  The {@link ImageFormat} to use.
     * @param encodeAlpha  Whether to encode alpha transparency (not supported 
     *                     by all ImageEncoders).
     * @return The byte[] that is the encoded image.
     * @throws IOException
     */
public static byte[] encode(BufferedImage image, String format, [[#variable18e478e0]]  [[#variable18e47fa0]]) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format,  [[#variable18e47fa0]]);
  return imageEncoder.encode(image);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18e478e0]]
boolean 
12[[#18e478e0]]
float 
21[[#18e47fa0]]
encodeAlpha 
22[[#18e47fa0]]
quality