aboutsummaryrefslogtreecommitdiffstatsci
path: root/Drawing2D/src/ISurface.cs
blob: 292334c422aa1668eb31466421636dbf05ed1b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2022  Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)

using System;

namespace Drawing2D
{
	public interface ISurface: IDisposable
	{
		int Width { get; }
		int Height { get; }

		void Flush ();

		/*void WriteToPng (string path);
		void WriteTo (IntPtr bitmap);
		void Clear ();
		ISurface CreateSimilar (int width, int height);*/
		void Resize (int width, int height);
		IntPtr Handle { get; }
	}
}