-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathXbmImage.cs
38 lines (34 loc) · 1014 Bytes
/
XbmImage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
namespace sablefin.nf.OledDisplay1306
{
/// <summary>
/// XBM image
/// </summary>
public class XbmImage
{
/// <summary>
/// construct a new instance of XBM image
/// </summary>
/// <param name="width">width of the bitmatp</param>
/// <param name="height">height of the bitmap</param>
/// <param name="datas">binaray datas for XBM picture</param>
public XbmImage(int width, int height, byte[] datas)
{
this.Width = width;
this.Height = height;
this.Datas = datas;
}
/// <summary>
/// Width of image (in pixel)
/// </summary>
public int Width { get; private set; }
/// <summary>
/// Height of image (in pixel)
/// </summary>
public int Height { get; private set; }
/// <summary>
/// Binary datas of image
/// </summary>
public byte[] Datas { get; private set; }
}
}