Commit Description:
Fix tick marks....
Commit Description:
Fix tick marks. Use the range (rather than the domain) so the ticks are spaced appropriately. Also sets an arbitrary range if the full range is 0 (if the series is always at the same value) so that the line actually appears.
File last commit:
Show/Diff file:
Action:
SpriteFontPlus/src/Utility/IOUtils.cs
27 lines | 467 B | text/x-csharp | CSharpLexer
using System.IO;
namespace SpriteFontPlus.Utility
{
internal static class IOUtils
{
public static byte[] ToByteArray(this Stream stream)
{
byte[] bytes;
// Rewind stream if it is at end
if (stream.CanSeek && stream.Length == stream.Position)
{
stream.Seek(0, SeekOrigin.Begin);
}
// Copy it's data to memory
using (var ms = new MemoryStream())
{
stream.CopyTo(ms);
bytes = ms.ToArray();
}
return bytes;
}
}
}