public override object Decode( Stream input, Stream output, params object[] args )
{
byte[] data = new byte[ input.Length ];
input.Read( data, 0, (int)input.Length );
output.Write( data, 0, (int)input.Length );
if ( input.GetType() == typeof( XnaImageCodecStream ) )
{
return ( (XnaImageCodecStream)input ).ImageData;
}
return null;
}