Inheritance Hierarchy
DeltaEngine.Content.Disk.Tests HasAlphaPixelsTests
Namespace: DeltaEngine.Content.Disk.Tests
Assembly: DeltaEngine.Content.Disk.Tests (in DeltaEngine.Content.Disk.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The HasAlphaPixelsTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HasAlphaPixelsTests | Initializes a new instance of the HasAlphaPixelsTests class |
Methods
Name | Description | |
---|---|---|
DefaultRadiobuttonOnHasAlphaPixels | ||
DeltaEngineLogoHasAlphaPixels | ||
SimpleSubMenuBackgroundHasNoAlphaPixels | ||
SmallImageHasNoAlphaPixels |
Examples
[Test] public void DeltaEngineLogoHasAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "DeltaEngineLogo.png")); Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
[Test] public void SimpleSubMenuBackgroundHasNoAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "SimpleSubMenuBackground.png")); Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
[Test] public void DefaultRadiobuttonOnHasAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "DefaultRadiobuttonOn.png")); Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
[Test] public void SmallImageHasNoAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "SmallImage.png")); Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
See Also