HC_DInsert_Image

Key HC_DInsert_Image(double x, double y, double z, char const *format, int width, int height, void const *data)
Key HC_DInsert_Image(double x, double y, double z, char const format, int width, int height, void const data)

Similar to Insert_Image(), but accepts parameters of type double for increased precision.

Parameters

x: The x-coordinate of the center of the image.

y: The y-coordinate of the center of the image.

z: The z-coordinate of the center of the image.

format: A description of how data in the data array is packed

width: The number of columns of pixels in this image. Must be a positive number.

height: The number of rows of pixels in this image. Must be a positive number.

data: An array of bytes, packed in accordance with format, that describes the colors of each pixel in the image.

Returns

The key to the inserted geometry, or -1 if an error occurred.