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.967 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 147 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java |
2 | 5 | 164 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java |
| |||||
/** * Encode the image in a specific format and write it to an OutputStream. * * @param image The image to be encoded. * @param format The {@link ImageFormat} to use. * @param outputStream The OutputStream to write the encoded image to. * @param quality The quality to use for the image encoding (not * supported by all ImageEncoders). * @throws IOException */ public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, float quality) throws IOException { ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, quality); imageEncoder.encode(image, outputStream); } |
| |||||
/** * Encode the image in a specific format and write it to an OutputStream. * * @param image The image to be encoded. * @param format The {@link ImageFormat} to use. * @param outputStream The OutputStream to write the encoded image to. * @param encodeAlpha Whether to encode alpha transparency (not * supported by all ImageEncoders). * @throws IOException */ public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, boolean encodeAlpha) throws IOException { ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, encodeAlpha); imageEncoder.encode(image, outputStream); } |
| |||
/** * Encode the image in a specific format and write it to an OutputStream. * * @param image The image to be encoded. * @param format The {@link ImageFormat} to use. * @param outputStream The OutputStream to write the encoded image to. * @param encodeAlpha Whether to encode alpha transparency (not * supported by all ImageEncoders). * @throws IOException */ /** * Encode the image in a specific format and write it to an OutputStream. * * @param image The image to be encoded. * @param format The {@link ImageFormat} to use. * @param outputStream The OutputStream to write the encoded image to. * @param quality The quality to use for the image encoding (not * supported by all ImageEncoders). * @throws IOException */ public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, [[#variable18ddb760]] [[#variable18ddb840]]) throws IOException { ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, [[#variable18ddb840]]); imageEncoder.encode(image, outputStream); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18ddb760]] | float |
1 | 2 | [[#18ddb760]] | boolean |
2 | 1 | [[#18ddb840]] | quality |
2 | 2 | [[#18ddb840]] | encodeAlpha |