ArcGIS Pro 2.7 API Reference Guide
esriTextureCompressionType Enumeration
Example Example 

ArcGIS.Core.Geometry Namespace : esriTextureCompressionType Enumeration
Describes the compression type of the material texture.
Syntax
public enum esriTextureCompressionType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
Public Enum esriTextureCompressionType 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
Members
MemberDescription
CompressionJPEG The texture is compressed as a JPEG image.
CompressionNone The texture is not compressed.
Remarks
If the texture is compressed, then it is compressed as a JPEG image.
Example
// <summary>
// This method gets the material texture image of a multipatch.
// This method must be called on the MCT. Use QueuedTask.Run.
// </summary>
// <param name="multipatch">The input multipatch.</param>
// <param name="patchIndex">The index of the patch (part) for which to get the material texture.</param>
public void GetMultipatchTextureImage(Multipatch multipatch, int patchIndex)
{
  int materialIndex = multipatch.GetPatchMaterialIndex(patchIndex);
  if (!multipatch.IsMaterialTextured(materialIndex))
    return;

  esriTextureCompressionType compressionType = multipatch.GetMaterialTextureCompressionType(materialIndex);
  string ext = compressionType == esriTextureCompressionType.CompressionJPEG ? ".jpg" : ".dat";
  byte[] textureBuffer = multipatch.GetMaterialTexture(materialIndex);

  Stream imageStream = new MemoryStream(textureBuffer);
  System.Drawing.Image image = System.Drawing.Image.FromStream(imageStream);
  image.Save(@"C:\temp\myImage" + ext);
}
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         ArcGIS.Core.Geometry.esriTextureCompressionType

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ArcGIS.Core.Geometry Namespace