public class FastGraphics
extends java.lang.Object
| Constructor and Description |
|---|
FastGraphics(FastBitmap fastBitmap)
Initialize a new instance of the FastGraphics class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DrawCircle(int x,
int y,
int radius)
Draw Circle.
|
void |
DrawCircle(IntPoint p,
int radius)
Draw Circle.
|
void |
DrawImage(FastBitmap image,
int x,
int y)
Draw image over a image.
|
void |
DrawLine(int x,
int y,
int x2,
int y2)
http://tech-algorithm.com/articles/drawing-line-using-bresenham-algorithm/
|
void |
DrawLine(IntPoint p,
IntPoint q)
Draw Line.
|
void |
DrawPolygon(int[] x,
int[] y)
Draw Polygon.
|
void |
DrawPolygon(int[] x,
int[] y,
int n)
Draw Polygon.
|
void |
DrawPolygon(IntPolygon polygon)
Draw Polygon.
|
void |
DrawPolygon(IntPolygon polygon,
int nPoints)
Draw Polygon.
|
void |
DrawPolygon(java.util.List<IntPoint> points)
Draw Polygon
|
void |
DrawPolygon(java.util.List<IntPoint> points,
int n)
Draw Polygon
|
void |
DrawRectangle(int x,
int y,
int width,
int height)
Draw Rectangle.
|
void |
DrawRectangle(IntPoint p,
int width,
int height)
Draw Rectangle.
|
void |
DrawRectangle(IntRectangle rectangle)
Draw Rectangle.
|
void |
setColor(Color color)
Set color.
|
void |
setColor(int gray)
Set color.
|
void |
setColor(int red,
int green,
int blue)
Set color.
|
void |
setImage(FastBitmap fastBitmap)
Set Image.
|
public FastGraphics(FastBitmap fastBitmap)
fastBitmap - Image to be processed.public void setColor(Color color)
color - Color.public void setColor(int red,
int green,
int blue)
red - Red channel.green - Green channel.blue - Blue channel.public void setColor(int gray)
gray - Gray channel.public void setImage(FastBitmap fastBitmap)
fastBitmap - Image to be processed.public void DrawCircle(IntPoint p, int radius)
p - IntPoint contains X and Y coordinates.radius - Radius.public void DrawCircle(int x,
int y,
int radius)
x - X axis coordinate.y - Y axis coordinate.radius - Radius.public void DrawLine(IntPoint p, IntPoint q)
p - IntPoint contains X and Y coordinates.q - IntPoint contains X and Y coordinates.public void DrawLine(int x,
int y,
int x2,
int y2)
x - X axis coordinate.y - Y axis coordinate.x2 - X2 axis coordinate.y2 - Y2 axis coordinate.public void DrawImage(FastBitmap image, int x, int y)
image - Image.x - X axis coordinate.y - Y axis coordinate.public void DrawPolygon(IntPolygon polygon)
polygon - Polygon.public void DrawPolygon(IntPolygon polygon, int nPoints)
polygon - Polygon.nPoints - Number of points.public void DrawPolygon(java.util.List<IntPoint> points, int n)
points - List of points.n - Number of points.public void DrawPolygon(java.util.List<IntPoint> points)
points - List of points.public void DrawPolygon(int[] x,
int[] y)
x - X axis coordinate.y - Y axis coordinate.public void DrawPolygon(int[] x,
int[] y,
int n)
x - X axis coordinate.y - Y axis coordinate.n - Number of points.public void DrawRectangle(IntRectangle rectangle)
rectangle - IntRectangle shape.public void DrawRectangle(IntPoint p, int width, int height)
p - IntPoint contains X and Y coordinates.width - Width of rectangle.height - Height of rectangle.public void DrawRectangle(int x,
int y,
int width,
int height)
x - X axis coordinate.y - Y axis coordinate.width - Width of rectangle.height - Height of rectangle.