CreateImage() creates an image. Use this instead of new to create image objects. If width and height are non-zero, creates the appropriate memory for the image and adds a reference. Otherwise, does not create memory buffer or add reference. Call CATImage::ReleaseImage() on the returned image when done.
Definition at line 39 of file CATImage.cpp. References CAT_ERR_OUT_OF_MEMORY, CAT_SUCCESS, CATImage(), CATRESULT, and Create(). Referenced by CATControl::CheckImageSize(), CopyImage(), CreateSub(), and CATWindow::ResetBackground().
|