This document is archived and information here might be outdated. Recommended version. |
Get Material texture bytes per pixel.
[Visual Basic .NET] Public Function get_MaterialTextureBytesPerPixel ( _ ByVal Index As Integer _ ) As Integer
[C#] public int get_MaterialTextureBytesPerPixel ( int Index );
[C++]
HRESULT get_MaterialTextureBytesPerPixel(
long Index,
System.Int32* pBytesPerPixel
);
[C++]
Parameters Index [in]
Index is a parameter of type long pBytesPerPixel [out, retval]
pBytesPerPixel is a parameter of type long*
Returns the number of bytes per pixel of the texture associated with the Geometry Material located at the specified index.
This property shows how many bands exist in a geometry material. For a geometry material, the minimum value of this property is 1 and the maximum is 4. The fourth channel is usually the alpha channel used for material pixel transparency - the 'A' in 'RGBA'.