ArcGIS Pro 2.6 API Reference Guide
TextureResource Property
Example 

ArcGIS.Core.Geometry Namespace > BasicMaterial Class : TextureResource Property
A TextureResource that contains Texture.
Syntax
public TextureResource TextureResource {get; set;}
Public Property TextureResource As TextureResource
Remarks
Can be null, when this material does not contain a texture. Different material instances can share the same TextureResource.
Example
// read the jpeg into a buffer
System.Drawing.Image image = System.Drawing.Image.FromFile(@"C:\temp\myImageFile.jpg");
MemoryStream memoryStream = new MemoryStream();

System.Drawing.Imaging.ImageFormat format = System.Drawing.Imaging.ImageFormat.Jpeg;
image.Save(memoryStream, format);
byte[] imageBuffer = memoryStream.ToArray();

var jpgTexture = new JPEGTexture(imageBuffer);

// texture properties
int bpp = jpgTexture.BytesPerPixel;
int columnCount = jpgTexture.ColumnCount;
int rowCount = jpgTexture.RowCount;

// build the textureResource and the material
BasicMaterial material = new BasicMaterial();
material.TextureResource = new TextureResource(jpgTexture);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

BasicMaterial Class
BasicMaterial Members