HasAlphaPixelsTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class HasAlphaPixelsTests

The HasAlphaPixelsTests type exposes the following members.

Constructors

  NameDescription
Public methodHasAlphaPixelsTests
Initializes a new instance of the HasAlphaPixelsTests class
Top
Methods

  NameDescription
Public methodDefaultRadiobuttonOnHasAlphaPixels
Public methodDeltaEngineLogoHasAlphaPixels
Public methodSimpleSubMenuBackgroundHasNoAlphaPixels
Public methodSmallImageHasNoAlphaPixels
Top
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