OSDN Git Service

リファクタリングを行った
[d2dbench/d2dbench.git] / D2DBench / IRender.cs
1 using System;
2 namespace D2DBench
3 {
4     interface IRender
5     {
6         void BeginDraw();
7         int ColorCount { get; }
8         void Dispose();
9         void DrawBitmap(IBitmap bmp, int left, int top, int right, int bottom);
10         void DrawLine(int x, int y, int tox, int toy, int colorno);
11         void DrawString(int x, int y, int colorno);
12         void EndDraw();
13         void FillRectangle(int left, int top, int right, int bottom, int colorno);
14         IBitmap Load(System.Drawing.Bitmap srcBitmap);
15         void UnLoad(IBitmap bmp);
16     }
17     interface IBitmap
18     {
19         int Width { get; }
20         int Height { get; }
21     }
22 }