mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
test appveyor
This commit is contained in:
parent
e0ac8d33a6
commit
08a5b1d4c1
@ -4,17 +4,16 @@ namespace Nikse.SubtitleEdit.Core
|
||||
{
|
||||
public class BmpReader
|
||||
{
|
||||
public string HeaderId { get; private set; }
|
||||
public UInt32 HeaderFileSize { get; private set; }
|
||||
public UInt32 OffsetToPixelArray { get; private set; }
|
||||
public string HeaderId { get; }
|
||||
public uint HeaderFileSize { get; }
|
||||
public uint OffsetToPixelArray { get; }
|
||||
|
||||
public BmpReader(string fileName)
|
||||
{
|
||||
byte[] buffer = System.IO.File.ReadAllBytes(fileName);
|
||||
var buffer = System.IO.File.ReadAllBytes(fileName);
|
||||
HeaderId = System.Text.Encoding.UTF8.GetString(buffer, 0, 2);
|
||||
HeaderFileSize = BitConverter.ToUInt32(buffer, 2);
|
||||
OffsetToPixelArray = BitConverter.ToUInt32(buffer, 0xa);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user