This follow up commit adds tiling support to images, so
that splash screens can have been background patterns instead
of just background colors.
return new_image;
}
+ply_image_t *
+ply_image_tile (ply_image_t *image,
+ long width,
+ long height)
+{
+ ply_image_t *new_image;
+
+ new_image = ply_image_new (image->filename);
+
+ new_image->buffer = ply_pixel_buffer_tile (image->buffer,
+ width,
+ height);
+ return new_image;
+}
+
ply_pixel_buffer_t *
ply_image_get_buffer (ply_image_t *image)
{
long ply_image_get_height (ply_image_t *image);
ply_image_t *ply_image_resize (ply_image_t *image, long width, long height);
ply_image_t *ply_image_rotate (ply_image_t *oldimage, long center_x, long center_y, double theta_offset);
+ply_image_t *ply_image_tile (ply_image_t *image, long width, long height);
ply_pixel_buffer_t *ply_image_get_buffer (ply_image_t *image);
ply_pixel_buffer_t *ply_image_convert_to_pixel_buffer (ply_image_t *image);