src/pix1.c
PIX *
pixCreateTemplate(PIX  *pixs)
{
PIX  *pixd;

    PROCNAME("pixCreateTemplate");

    if (!pixs)
        return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);

    if ((pixd = pixCreateTemplateNoInit(pixs)) == NULL)
        return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
    memset(pixd->data, 0, 4 * pixd->wpl * pixd->h);
    return pixd;
}
/*!
 *  pixCreateTemplate()
 *
 *      Input:  pixs
 *      Return: pixd, or null on error
 *
 *  Notes:
 *      (1) Makes a Pix of the same size as the input Pix, with the
 *          data array allocated and initialized to 0.
 *      (2) Copies the other fields, including colormap if it exists.
 */
pixCreateTemplate()
Input:  pixs
Return: pixd, or null on error

(1) Makes a Pix of the same size as the input Pix, with the
data array allocated and initialized to 0.
(2) Copies the other fields, including colormap if it exists.
pixCreateTemplate () Input : pixs Return : pixd or null on error ( 1 ) Makes a Pix of the same size as the input Pix with the data array allocated and initialized to 0 . ( 2 ) Copies the other fields including colormap if it exists .
PIX *
pixCreateTemplate(PIX  *pixs)
{
PIX  *pixd;
    PROCNAME("pixCreateTemplate");
    if (!pixs)
        return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
    if ((pixd = pixCreateTemplateNoInit(pixs)) == NULL)
        return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
    memset(pixd->data, 0, 4 * pixd->wpl * pixd->h);
    return pixd;
}
PIX * pixCreateTemplate ( PIX * pixs ) { PIX * pixd ; PROCNAME ( " " ) ; if ( ! pixs ) return ( PIX * ) ERROR_PTR ( " " , procName , NULL ) ; if ( ( pixd = pixCreateTemplateNoInit ( pixs ) ) == NULL ) return ( PIX * ) ERROR_PTR ( " " , procName , NULL ) ; memset ( pixd -> data , 0 , 4 * pixd -> wpl * pixd -> h ) ; return pixd ; }
pixCreateTemplate()
      Input:  pixs
      Return: pixd, or null on error
pixCreateTemplate () Input : pixs Return : pixd or null on error