ArcGIS Pro 2.6 API Reference Guide
UncompressedTexture Constructor(Byte[],Int32,Int32,Byte)
Example 

ArcGIS.Core.Geometry Namespace > UncompressedTexture Class > UncompressedTexture Constructor : UncompressedTexture Constructor(Byte[],Int32,Int32,Byte)
The row-major image buffer. Each bpp bytes represent one pixel.
The number of columns in the image (width of the image).
The number of rows in the image (height of the image).
The number of bytes per one pixel. Should be between 1 and 4.
Initializes a new instance of the UncompressedTexture class from given data.
Syntax
public UncompressedTexture( 
   byte[] buffer,
   int columns,
   int rows,
   byte bpp
)
Public Function New( _
   ByVal buffer() As Byte, _
   ByVal columns As Integer, _
   ByVal rows As Integer, _
   ByVal bpp As Byte _
)

Parameters

buffer
The row-major image buffer. Each bpp bytes represent one pixel.
columns
The number of columns in the image (width of the image).
rows
The number of rows in the image (height of the image).
bpp
The number of bytes per one pixel. Should be between 1 and 4.
Example
UncompressedTexture uncompressedTexture1 = new UncompressedTexture(new byte[10 * 12 * 3], 10, 12, 3);

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

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

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

UncompressedTexture Class
UncompressedTexture Members
Overload List