- Image& operator=(const Image& rhs);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @return A handle to a newly allocated object
- */
- static Image New(const std::string& filename);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] loadPol The LoadPolicy to apply when loading the image resource.
- * @param [in] releasePol The ReleasePolicy to apply to Image.
- * @return A handle to a newly allocated object
- */
- static Image New(const std::string& filename, LoadPolicy loadPol, ReleasePolicy releasePol);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] attributes Requested parameters for loading (size, scaling etc.).
- * @return A handle to a newly allocated object
- */
- static Image New(const std::string& filename, const ImageAttributes& attributes);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] attributes Requested parameters for loading (size, scaling etc.).
- * @param [in] loadPol The LoadPolicy to apply when loading the image resource.
- * @param [in] releasePol The ReleasePolicy to apply to Image.
- * @return A handle to a newly allocated object
- */
- static Image New(const std::string& filename, const ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @return A handle to a newly allocated object
- */
- static Image NewDistanceField(const std::string& filename);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] loadPol The LoadPolicy to apply when loading the image resource.
- * @param [in] releasePol The ReleasePolicy to apply to Image.
- * @return A handle to a newly allocated object
- */
- static Image NewDistanceField(const std::string& filename, LoadPolicy loadPol, ReleasePolicy releasePol);
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] attributes The minimum search radius to check for differing pixels
- * @return A handle to a newly allocated object
- */
- static Image NewDistanceField(const std::string& filename, const ImageAttributes& attributes );
-
- /**
- * @brief Create an initialised image object.
- *
- * @param [in] filename The filename of the image file to use.
- * @param [in] attributes The minimum search radius to check for differing pixels
- * @param [in] loadPol The LoadPolicy to apply when loading the image resource.
- * @param [in] releasePol The ReleasePolicy to apply to Image.
- * @return A handle to a newly allocated object
- */
- static Image NewDistanceField(const std::string& filename, const ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol);
-
- /**
- * @brief Creates object with already loaded NativeImage.
- *
- * The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE
- * @pre nativeImg should be initialised
- * @param [in] nativeImg already initialised NativeImage
- * @return A handle to a newly allocated object
- */
- static Image New(NativeImage& nativeImg);
-
- /**
- * @brief Downcast an Object handle to Image handle.
- *
- * If handle points to a Image object the
- * downcast produces valid handle. If not the returned handle is left uninitialized.
- * @param[in] handle to An object
- * @return handle to a Image object or an uninitialized handle
- */
- static Image DownCast( BaseHandle handle );
-
- /**
- * @brief Query whether the image data has loaded.
- *
- * The asynchronous loading begins when the Image object is created.
- * After the Image object is discarded, the image data will be released from memory.
- * @return The loading state, either Loading, Success or Failed.
- */
- LoadingState GetLoadingState() const;
-
- /**
- * @brief Returns the filename of the image if the image is created from a file.
- *
- * @return the image filename or empty string
- */
- std::string GetFilename() const;