ImageTests DrawCustomImageHalfRedHalfGold Method Delta Engine Documentation
From http://forum.deltaengine.net/yaf_postsm6203_Dynamic-textures---v--0-9-8-2.aspx#post6203 View code on GitHub

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DrawCustomImageHalfRedHalfGold()
Examples

/// <summary> 
/// From http://forum.deltaengine.net/yaf_postsm6203_Dynamic-textures---v--0-9-8-2.aspx#post6203 
/// </summary>
[Test, ApproveFirstFrameScreenshot]
public void DrawCustomImageHalfRedHalfGold()
{
    var customImage = ContentLoader.Create<Image>(new ImageCreationData(new Size(64, 64)));
    var colors = new Color[64 * 64];
    for (int i = 0; i < colors.Length; i++)
        colors[i] = i < colors.Length / 2 ? Color.Red : Color.Gold;
    customImage.Fill(colors);
    new SolidSprite(customImage);
}
See Also