예제 #1
0
 /// <summary>
 /// Writes images contained as DDS formatted data to a stream.
 /// </summary>
 /// <param name="output">Output stream.</param>
 /// <param name="flags">Flags to control how the DDS data is saved.</param>
 /// <returns>True if writing the data was successful, false if otherwise.</returns>
 public bool Write(Stream output, DDSFlags flags = DDSFlags.None)
 {
     return(DDSTypes.Write(output, m_mipChains, m_format, m_dimension, flags));
 }
예제 #2
0
 /// <summary>
 /// Writes images to a DDS file to disk.
 /// </summary>
 /// <param name="fileName">File to write to. If it doesn't exist, it will be created.</param>
 /// <param name="flags">Flags to control how the DDS data is saved.</param>
 /// <returns>True if writing the data was successful, false if otherwise.</returns>
 public bool Write(String fileName, DDSFlags flags = DDSFlags.None)
 {
     return(DDSTypes.Write(fileName, m_mipChains, m_format, m_dimension, flags));
 }