Imager::APIRef is Imager's C API.
SYNOPSIS
i_color color;
color.rgba.red = 255; color.rgba.green = 0; color.rgba.blue = 255;
i_fill_t *fill = i_new_fill_...(...);
# Drawing
i_arc(im, 50, 50, 20, 45, 135, &color);
i_arc_aa(im, 50, 50, 35, 90, 135, &color);
i_arc_aa_cfill(im, 50, 50, 35, 90, 135, fill);
i_arc_cfill(im, 50, 50, 35, 90, 135, fill);
i_box(im, 0, 0, im->xsize-1, im->ysize-1, &color).
i_box_cfill(im, 0, 0, im->xsize-1, im->ysize-1, fill);
i_box_filled(im, 0, 0, im->xsize-1, im->ysize-1, &color);
i_circle_aa(im, 50, 50, 45, &color);
i_flood_cfill(im, 50, 50, fill);
i_flood_cfill_border(im, 50, 50, fill, border);
i_flood_fill(im, 50, 50, &color);
i_flood_fill_border(im, 50, 50, &color, &border);
# Error handling
# Files
i_get_image_file_limits(&width, &height, &bytes)
i_i_int_check_image_file_limits(width, height, channels, sizeof(i_sample_t))
i_set_image_file_limits(500, 500, 1000000);
# Fills
fill = i_new_fill_fount(0, 0, 100, 100, i_ft_linear, i_ft_linear,
i_fr_triangle, 0, i_fts_grid, 9, 1, segs);
# Image
# Image creation
# Image quantization
# Paletted images
# Tags
i_fill_destroy(fill);
Requirements:
· Perl
Product's homepage