diff --git a/doc/index.html b/doc/index.html index 4ac73bd..42ebf57 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1883,6 +1883,75 @@ the image onto the current drawable instead of the current image. This function works just like imlib_render_image_on_drawable_skewed() except you cannot skew an image (v_angle_x and v_angle_y are 0). + +
void imlib_context_set_cliprect(int x, int y, int w, int h);+
+Sets the current clipping rectangle to (x,y w*h). The clipping rectangle +effects all image drawing functions and prevents the area outside the +rectangle from being edited. Set w to 0 to disable clipping. ++ +
int imlib_clip_line(int x0, int y0, int x1, int y1, int xmin, int xmax, int ymin, int ymax, int *clip_x0, int *clip_y0, int *clip_x1, int *clip_y1);+
+A utility function to return clipped line coordinates. ++ + +
void imlib_polygon_new(void);+
+Returns a new polygon object with no points set. ++ +
void imlib_polygon_free(ImlibPolygon poly);+
+Frees a polygon object. ++ +
void imlib_polygon_add_point(ImlibPolygon poly, int x, int y);+
+Adds the point (x,y) to a polygon object. The point will be added to the +end of the polygon's internal point list. The points are drawn in order, +from the first to the last. ++ +
void imlib_image_draw_polygon(ImlibPolygon poly, unsigned char closed);+
+Draws a polygon onto the current context image. Points which have been +added to the polygon are drawn in sequence, first to last. The final point will be +joined with the first point if closed is non-zero. ++ +
void imlib_image_fill_polygon(ImlibPolygon poly);+
+Fill the area defined by the polygon on the current context image with +the current context colour. ++ +
void imlib_polygon_get_bounds(ImlibPolygon poly, int *px1, int *py1, int *px2, int *py2);+
+Calculate the bounding area of the polygon. (px1, py1) defines the upper +left corner of the bounding box and (px2, py2) defines it's lower right +corner. ++ +
unsigned char imlib_polygon_contains_point(ImlibPolygon poly, int x, int y);+
+Returns non-zero if the point (x,y) is within the area defined by the +polygon. ++ +
void imlib_image_draw_ellipse(int xc, int yc, int a, int b);+
+Draw an ellipse on the current context image. The ellipse is defined as (x-xc)^2/a^2 + (y-yc)^2/b^2 = 1. This means that the point (xc,yc) marks the center of the ellipse, a defines the horizontal amplitude of the ellipse, and b defines the vertical amplitude. ++ +
void imlib_image_fill_ellipse(int xc, int yc, int a, int b);+
+Fills an ellipse on the current context image using the current context colour. The ellipse is defined as (x-xc)^2/a^2 + (y-yc)^2/b^2 = 1. This means that the point (xc,yc) marks the center of the ellipse, a defines the horizontal amplitude of the ellipse, and b defines the vertical amplitude. ++ + +
void imlib_image_filter(void);
Imlib_Filter imlib_create_filter(int initsize);@@ -1940,12 +2009,12 @@ you cannot skew an image (v_angle_x and v_angle_y are 0).