Catalano.Imaging
Class FastGraphics
- java.lang.Object
-
- Catalano.Imaging.FastGraphics
-
public class FastGraphics extends java.lang.ObjectFast Graphics. Allow to drawing over Fast Bitmap.
-
-
Constructor Summary
Constructors Constructor and Description FastGraphics(FastBitmap fastBitmap)Initialize a new instance of the FastGraphics class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidDrawCircle(int x, int y, int radius)Draw Circle.voidDrawCircle(IntPoint p, int radius)Draw Circle.voidDrawImage(FastBitmap image, int x, int y)Draw image over a image.voidDrawLine(int x, int y, int x2, int y2)http://tech-algorithm.com/articles/drawing-line-using-bresenham-algorithm/voidDrawLine(IntPoint p, IntPoint q)Draw Line.voidDrawPolygon(int[] x, int[] y)Draw Polygon.voidDrawPolygon(int[] x, int[] y, int n)Draw Polygon.voidDrawPolygon(IntPolygon polygon)Draw Polygon.voidDrawPolygon(IntPolygon polygon, int nPoints)Draw Polygon.voidDrawPolygon(java.util.List<IntPoint> points)Draw PolygonvoidDrawPolygon(java.util.List<IntPoint> points, int n)Draw PolygonvoidDrawRectangle(int x, int y, int width, int height)Draw Rectangle.voidDrawRectangle(IntPoint p, int width, int height)Draw Rectangle.voidDrawRectangle(IntRectangle rectangle)Draw Rectangle.voidsetColor(Color color)Set color.voidsetColor(int gray)Set color.voidsetColor(int red, int green, int blue)Set color.voidsetImage(FastBitmap fastBitmap)Set Image.
-
-
-
Constructor Detail
-
FastGraphics
public FastGraphics(FastBitmap fastBitmap)
Initialize a new instance of the FastGraphics class.- Parameters:
fastBitmap- Image to be processed.
-
-
Method Detail
-
setColor
public void setColor(Color color)
Set color.- Parameters:
color- Color.
-
setColor
public void setColor(int red, int green, int blue)Set color.- Parameters:
red- Red channel.green- Green channel.blue- Blue channel.
-
setColor
public void setColor(int gray)
Set color.- Parameters:
gray- Gray channel.
-
setImage
public void setImage(FastBitmap fastBitmap)
Set Image.- Parameters:
fastBitmap- Image to be processed.
-
DrawCircle
public void DrawCircle(IntPoint p, int radius)
Draw Circle.- Parameters:
p- IntPoint contains X and Y coordinates.radius- Radius.
-
DrawCircle
public void DrawCircle(int x, int y, int radius)Draw Circle.- Parameters:
x- X axis coordinate.y- Y axis coordinate.radius- Radius.
-
DrawLine
public void DrawLine(IntPoint p, IntPoint q)
Draw Line.- Parameters:
p- IntPoint contains X and Y coordinates.q- IntPoint contains X and Y coordinates.
-
DrawLine
public void DrawLine(int x, int y, int x2, int y2)http://tech-algorithm.com/articles/drawing-line-using-bresenham-algorithm/- Parameters:
x- X axis coordinate.y- Y axis coordinate.x2- X2 axis coordinate.y2- Y2 axis coordinate.
-
DrawImage
public void DrawImage(FastBitmap image, int x, int y)
Draw image over a image.- Parameters:
image- Image.x- X axis coordinate.y- Y axis coordinate.
-
DrawPolygon
public void DrawPolygon(IntPolygon polygon)
Draw Polygon.- Parameters:
polygon- Polygon.
-
DrawPolygon
public void DrawPolygon(IntPolygon polygon, int nPoints)
Draw Polygon.- Parameters:
polygon- Polygon.nPoints- Number of points.
-
DrawPolygon
public void DrawPolygon(java.util.List<IntPoint> points, int n)
Draw Polygon- Parameters:
points- List of points.n- Number of points.
-
DrawPolygon
public void DrawPolygon(java.util.List<IntPoint> points)
Draw Polygon- Parameters:
points- List of points.
-
DrawPolygon
public void DrawPolygon(int[] x, int[] y)Draw Polygon.- Parameters:
x- X axis coordinate.y- Y axis coordinate.
-
DrawPolygon
public void DrawPolygon(int[] x, int[] y, int n)Draw Polygon.- Parameters:
x- X axis coordinate.y- Y axis coordinate.n- Number of points.
-
DrawRectangle
public void DrawRectangle(IntRectangle rectangle)
Draw Rectangle.- Parameters:
rectangle- IntRectangle shape.
-
DrawRectangle
public void DrawRectangle(IntPoint p, int width, int height)
Draw Rectangle.- Parameters:
p- IntPoint contains X and Y coordinates.width- Width of rectangle.height- Height of rectangle.
-
DrawRectangle
public void DrawRectangle(int x, int y, int width, int height)Draw Rectangle.- Parameters:
x- X axis coordinate.y- Y axis coordinate.width- Width of rectangle.height- Height of rectangle.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG