Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.963 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 79 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java |
2 | 5 | 96 | 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); } |
| |||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18e478e0]] | boolean |
1 | 2 | [[#18e478e0]] | float |
2 | 1 | [[#18e47fa0]] | encodeAlpha |
2 | 2 | [[#18e47fa0]] | quality |