Texture |
public class TextureInfo
The TextureInfo type exposes the following members.
Name | Description | |
---|---|---|
TextureInfo | Initializes a new instance of the TextureInfo class |
Name | Description | |
---|---|---|
DpiX | 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. | |
DpiY | 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. | |
Format | DXGI image format | |
HasPremultipliedAlpha | 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. | |
HasTransparency | 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. | |
Height | Height in pixels | |
Width | Width in pixels |