Documentation of 'Catalano.Imaging.FastGraphics' Java class
FastGraphics
Catalano.Imaging

Class FastGraphics



  • public class FastGraphics
    extends java.lang.Object
    Fast Graphics. Allow to drawing over Fast Bitmap.
    • 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

You see the box below because you did not login.