public class ShadingUtils extends Object
| Constructor and Description |
|---|
ShadingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Color |
bilinearInterpolateColor(Color upperLeft,
Color upperRight,
Color lowerLeft,
Color lowerRight,
float fractionX,
float fractionY) |
static Point2D |
findDistancedPoint(double t,
Point2D sp,
Point2D c1,
Point2D c2,
Point2D ep)
method used to find any point in given distance in cubic bezier curve
|
static Point2D |
findIntersect(Point2D p1,
Point2D p2,
Point2D p3,
Point2D p4) |
static GeneralPath |
getPathFromBBox(float[] rawBBox) |
static float[] |
getPdfCoords(AffineTransform inversedAffine,
int x,
int y,
int xStart,
int yStart) |
static float[] |
getPixelPDF(boolean isPrinting,
int rotation,
float x,
float y,
int xStart,
int yStart,
float offX,
float offY,
float minX,
float pageHeight,
float scaling) |
static int |
getRotationFromAffine(AffineTransform affine) |
static Color |
interpolate2Color(Color first,
Color second,
float fraction) |
public static Color bilinearInterpolateColor(Color upperLeft, Color upperRight, Color lowerLeft, Color lowerRight, float fractionX, float fractionY)
public static Point2D findDistancedPoint(double t, Point2D sp, Point2D c1, Point2D c2, Point2D ep)
t - please note t varies between 0 -- 1sp - starting pointc1 - control pointc2 - control pointep - end pointpublic static int getRotationFromAffine(AffineTransform affine)
public static final float[] getPixelPDF(boolean isPrinting,
int rotation,
float x,
float y,
int xStart,
int yStart,
float offX,
float offY,
float minX,
float pageHeight,
float scaling)
public static GeneralPath getPathFromBBox(float[] rawBBox)
public static float[] getPdfCoords(AffineTransform inversedAffine, int x, int y, int xStart, int yStart)
Copyright © 2017. All rights reserved.