diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 04:57:51 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 04:57:51 +0200 |
| commit | dde48ba7c6017539b5d8a4539030bea0715b0374 (patch) | |
| tree | f9e4b463244aac9bf1cf2d5bfb3473b22b3a0bbc /src/Mono.Cairo/ImageSurface.cs | |
| parent | 5f68cf21b47b88e4e1de7fed7bd9b8b56b5dfa3d (diff) | |
test texture surface backend with sdl and xcbTestXCBandSDL
Diffstat (limited to 'src/Mono.Cairo/ImageSurface.cs')
| -rw-r--r-- | src/Mono.Cairo/ImageSurface.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Mono.Cairo/ImageSurface.cs b/src/Mono.Cairo/ImageSurface.cs index 98143fe8..f109718b 100644 --- a/src/Mono.Cairo/ImageSurface.cs +++ b/src/Mono.Cairo/ImageSurface.cs @@ -100,5 +100,13 @@ namespace Cairo { public int Stride { get { return NativeMethods.cairo_image_surface_get_stride (Handle); } } + + public override Surface CreateSimilar (Content content, int width, int height) + { + IntPtr p = NativeMethods.cairo_surface_create_similar ( + this.Handle, content, width, height); + + return new Cairo.ImageSurface (p, true); + } } } |