HC_Insert_Image_By_Ref

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

Similar to Insert_Image(), but does not create a copy of the image data within HOOPS.

  • If an image inserted by reference is directly edited, the user should call HC_Edit_Image with a edit size of 0 to ensure that the image gets updated properly.

    HC_Insert_Image()

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.