OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Image_DDSParser Class Reference

    Auxiliary tool for parsing DDS file structure (without decoding). More...

    #include <Image_DDSParser.hxx>

    Static Public Member Functions

    static occ::handle< Image_CompressedPixMap > Load (const occ::handle< Image_SupportedFormats > &theSupported, const TCollection_AsciiString &theFile, const int theFaceIndex, const int64_t theFileOffset=0)
     Load the face from DDS file.
    static occ::handle< Image_CompressedPixMap > Load (const occ::handle< Image_SupportedFormats > &theSupported, const occ::handle< NCollection_Buffer > &theBuffer, const int theFaceIndex)
     Load the face from DDS file.

    Detailed Description

    Auxiliary tool for parsing DDS file structure (without decoding).

    Member Function Documentation

    ◆ Load() [1/2]

    occ::handle< Image_CompressedPixMap > Image_DDSParser::Load ( const occ::handle< Image_SupportedFormats > & theSupported,
    const occ::handle< NCollection_Buffer > & theBuffer,
    const int theFaceIndex )
    static

    Load the face from DDS file.

    Parameters
    [in]theSupportedlist of supported image formats
    [in]theBufferpre-loaded file data, should be at least of 128 bytes long defining DDS header.
    [in]theFaceIndexface index, within [0, Image_CompressedPixMap::NbFaces()) range; use -1 to skip reading the face data
    Returns
    loaded face or NULL if file cannot be read or not valid DDS file

    ◆ Load() [2/2]

    occ::handle< Image_CompressedPixMap > Image_DDSParser::Load ( const occ::handle< Image_SupportedFormats > & theSupported,
    const TCollection_AsciiString & theFile,
    const int theFaceIndex,
    const int64_t theFileOffset = 0 )
    static

    Load the face from DDS file.

    Parameters
    [in]theSupportedlist of supported image formats
    [in]theFilefile path
    [in]theFaceIndexface index, within [0, Image_CompressedPixMap::NbFaces()) range; use -1 to skip reading the face data
    [in]theFileOffsetoffset to the DDS data
    Returns
    loaded face or NULL if file cannot be read or not valid DDS file

    The documentation for this class was generated from the following file: