mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -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?
|
||||
|
||||
// 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.
|
||||
BufferedImage temp;
|
||||
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..
|
||||
// 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,
|
||||
int targetWidth, int targetHeight, Object hint,
|
||||
boolean progressiveBilinear) {
|
||||
@ -895,7 +895,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ {
|
||||
* filter function definitions
|
||||
*/
|
||||
|
||||
static interface InterpolationFilter {
|
||||
interface InterpolationFilter {
|
||||
double filter(double t);
|
||||
|
||||
double support();
|
||||
|
Loading…
x
Reference in New Issue
Block a user