ArcGIS Pro 3.2 API Reference Guide
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.
Example

In This Topic
    UncompressedTexture Constructor(Byte[],Int32,Int32,Byte)
    In This Topic
    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
    Create BasicMaterial with Uncompressed texture
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also