imImageCreateBased

Creates a new image based on an existing one. \n * If the addicional parameters are -1, the given image parameters are used. \n * The image atributes always are copied. HasAlpha is copied. * See also \ref imDataType and \ref imColorSpace. * * \verbatim im.ImageCreateBased(image: imImage, [width: number], [height: number], [color_space: number], [data_type: number]) -> image: imImage [in Lua 5] \endverbatim * The addicional parameters in Lua can be nil, * and they can also be functions with the based image as a parameter to return the respective value. * \ingroup imgclass

version(IM)
@nogc nothrow extern (C)
imImageCreateBased
(
const(imImage)* image
,
int width
,
int height
,,)

Meta