DevIL Documentation Previous | IL | Next

 

ilCopyImage

 

ilCopyImage copies the attributes and data from the image named in Src. The same image bound before calling ilCopyImage remains bound afterward.

 

ILboolean ilCopyImage(
  ILuint Src );


Parameters

 
Src
Name of an image to copy to the current image.


Errors

 
IL_ILLEGAL_OPERATION
The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.
IL_OUT_OF_MEMORY
Could not allocate memory for the converted image data.

See Also

 
ilBindImage, ilGenImages,