Click or drag to resize

EmbeddedTexture Class

Represents an embedded texture. Some file formats directly embed texture assets. Embedded textures may be uncompressed, where the data is given in an uncompressed format. Or it may be compressed in a format like png or jpg. In the latter case, the raw file bytes are given so the application must utilize an image decoder (e.g. DevIL) to get access to the actual color data. This object represents both types, so some properties may or may not be valid depending if it is compressed or not.
Inheritance Hierarchy
SystemObject
  Internal.AssimpEmbeddedTexture

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public sealed class EmbeddedTexture : IMarshalable<EmbeddedTexture, AiTexture>

The EmbeddedTexture type exposes the following members.

Constructors
 NameDescription
Public methodEmbeddedTexture Constructs a new instance of the EmbeddedTexture class. Should use only if reading from a native value.
Public methodEmbeddedTexture(String, Byte, String) Constructs a new instance of the EmbeddedTexture class. This creates a compressed embedded texture.
Public methodEmbeddedTexture(Int32, Int32, Texel, String) Constructs a new instance of the EmbeddedTexture class. This creates an uncompressed embedded texture.
Top
Properties
 NameDescription
Public propertyCompressedData Gets the raw byte data representing the compressed texture. Only valid for compressed textures.
Public propertyCompressedDataSize Gets the size of the compressed data. Only valid for compressed textures.
Public propertyCompressedFormatHint Gets the format hint to determine the type of compressed data. This hint is a three-character lower-case hint like "dds", "jpg", "png".
Public propertyFilename Gets or sets the texture's original filename.
Public propertyHasCompressedData Gets if the embedded texture has compressed data. Only valid for compressed textures.
Public propertyHasNonCompressedData Gets if the texture has non-compressed texel data. Only valid for non-compressed textures.
Public propertyHeight Gets the height of the texture in pixels. Only valid for non-compressed textures.
Public propertyIsCompressed Gets if the texture is compressed or not.
Public propertyNonCompressedData Gets the non-compressed texel data, the array is of size Width * Height. Only valid for non-compressed textures.
Public propertyNonCompressedDataSize Gets the size of the non-compressed texel data. Only valid for non-compressed textures.
Public propertyWidth Gets the width of the texture in pixels. Only valid for non-compressed textures.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberFreeNative Frees unmanaged memory created by ToNative(IntPtr, Native).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also