Click or drag to resize
AB4D logo

TextureInfo Fields

The TextureInfo type exposes the following members.

Fields
 NameDescription
Public fieldDpiX Dpi resolution in X direction. This value may not be set for some images (for example DDS images). In this case the value double.NaN.
Public fieldDpiY Dpi resolution in Y direction. This value may not be set for some images (for example DDS images). In this case the value double.NaN.
Public fieldFormat DXGI image format
Public fieldHasPremultipliedAlpha True if the bitmap is using a pre-multiplied alpha colors (rgb colors are multiplied by the alpha - for example a 50% transparent red color is: r=0.5, b=0, g=0, a=0.5). Usually this value is determined by the DGI format, except with DDS textures where the format defines the texture compression (DDS format) and does not specify if the colors are pre-multiplied by alpha.
Public fieldHasTransparency True when the texture has transparent pixels. When using TextureLoader then standard image files (all except DDS) are by default checked for transparent pixels. In this case this property is true if the image actually contains transparent pixels. For DDS file or when transparency check is disabled in TextureLoader, then this property assumes presence of transparent pixels based on the image format.
Public fieldHeight Height in pixels
Public fieldWidth Width in pixels
Top
See Also