A pixel buffer is a much more useful object to manipulate. The image should
only be used when loading from files and never manipulating.
return new_image;
}
+ply_pixel_buffer_t *
+ply_image_convert_to_pixel_buffer (ply_image_t *image)
+{
+ ply_pixel_buffer_t *buffer;
+
+ buffer = image->buffer;
+ image->buffer = NULL;
+ ply_image_free (image);
+
+ return buffer;
+}
+
/* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */
#ifndef PLY_IMAGE_H
#define PLY_IMAGE_H
+#include "ply-pixel-buffer.h"
+
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
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_pixel_buffer_t *ply_image_convert_to_pixel_buffer (ply_image_t *image);
#endif