X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FImage%2FImage_AlienPixMap.hxx;h=14b1f40378d2d96a0ca002df187d2a9675639173;hp=1e8a17948bb6931c3a334b582dea7c110f67e92d;hb=88b12b7c054a5beff84f64a5eaf1904dc1fcc87a;hpb=7b93ae3c5ea3a9fdaaf6d29d4fbf0d4aff74d219 diff --git a/src/Image/Image_AlienPixMap.hxx b/src/Image/Image_AlienPixMap.hxx index 1e8a17948b..14b1f40378 100644 --- a/src/Image/Image_AlienPixMap.hxx +++ b/src/Image/Image_AlienPixMap.hxx @@ -36,6 +36,10 @@ class Image_AlienPixMap : public Image_PixMap DEFINE_STANDARD_RTTIEXT(Image_AlienPixMap, Image_PixMap) public: + //! Return default rows order used by underlying image library. + Standard_EXPORT static bool IsTopDownDefault(); +public: + //! Empty constructor. Standard_EXPORT Image_AlienPixMap(); @@ -43,7 +47,23 @@ public: Standard_EXPORT virtual ~Image_AlienPixMap(); //! Read image data from file. - Standard_EXPORT bool Load (const TCollection_AsciiString& theFileName); + bool Load (const TCollection_AsciiString& theFileName) + { + return Load (NULL, 0, theFileName); + } + + //! Read image data from stream. + Standard_EXPORT bool Load (std::istream& theStream, + const TCollection_AsciiString& theFileName); + + //! Read image data from memory buffer. + //! @param theData memory pointer to read from; + //! when NULL, function will attempt to open theFileName file + //! @param theLength memory buffer length + //! @param theFileName optional file name + Standard_EXPORT bool Load (const Standard_Byte* theData, + Standard_Size theLength, + const TCollection_AsciiString& theFileName); //! Write image data to file using file extension to determine compression format. Standard_EXPORT bool Save (const TCollection_AsciiString& theFileName);