ArcGIS Pro 2.7 API Reference Guide
BytesPerPixel Property (UncompressedTexture)
Example 

ArcGIS.Core.Geometry Namespace > UncompressedTexture Class : BytesPerPixel Property
Gets the bytes per pixel of the image.
Syntax
public override byte BytesPerPixel {get;}
Public Overrides ReadOnly Property BytesPerPixel As Byte
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

See Also

Reference

UncompressedTexture Class
UncompressedTexture Members