mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
Code clean-up.
This commit is contained in:
parent
d303918d87
commit
9f145a8684
@ -547,7 +547,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ {
|
|||||||
|
|
||||||
// TODO: What if output != null and wrong size? Create new? Render on only a part? Document?
|
// TODO: What if output != null and wrong size? Create new? Render on only a part? Document?
|
||||||
|
|
||||||
// If filter type != POINT or BOX an input has IndexColorModel, convert
|
// If filter type != POINT or BOX and input has IndexColorModel, convert
|
||||||
// to true color, with alpha reflecting that of the original color model.
|
// to true color, with alpha reflecting that of the original color model.
|
||||||
BufferedImage temp;
|
BufferedImage temp;
|
||||||
ColorModel cm;
|
ColorModel cm;
|
||||||
@ -590,7 +590,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ {
|
|||||||
/*
|
/*
|
||||||
// TODO: This idea from Chet and Romain is actually not too bad..
|
// TODO: This idea from Chet and Romain is actually not too bad..
|
||||||
// It reuses the image/raster/graphics...
|
// It reuses the image/raster/graphics...
|
||||||
// However, they forget to end with a halve operation..
|
// However, they don't end with a halve operation..
|
||||||
private static BufferedImage getFasterScaledInstance(BufferedImage img,
|
private static BufferedImage getFasterScaledInstance(BufferedImage img,
|
||||||
int targetWidth, int targetHeight, Object hint,
|
int targetWidth, int targetHeight, Object hint,
|
||||||
boolean progressiveBilinear) {
|
boolean progressiveBilinear) {
|
||||||
@ -895,7 +895,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ {
|
|||||||
* filter function definitions
|
* filter function definitions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static interface InterpolationFilter {
|
interface InterpolationFilter {
|
||||||
double filter(double t);
|
double filter(double t);
|
||||||
|
|
||||||
double support();
|
double support();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user