lqr_carver_new, lqr_carver_new_ext — the LqrCarver object constructors
#include <lqr.h>
LqrCarver* lqr_carver_new( | guchar* buffer, |
| gint width, | |
| gint height, | |
gint channels); |
LqrCarver* lqr_carver_new_ext( | void* buffer, |
| gint width, | |
| gint height, | |
| gint channels, | |
LqrColDepth colour_depth); |
The functions lqr_carver_new and
lqr_carver_new_ext create a new
LqrCarver object from an image of size width * height
with channels colour channels.
The image must be stored in
buffer as a plain array of unsigned chars
(for lqr_carver_new) or the appropriate
type cast to void (for lqr_carver_new_ext),
ordered by row, then by column, then by colour channel.
In the extended constructor lqr_carver_new_ext, the additional
parameter colour_depth is required to specify the colour depth
of the buffer (see LqrColDepth(3) for more information).
After calling the function, the buffer will be owned by the LqrCarver object and
must not be accessed any more.