sk_surface_new_backend_texture_as_render_target() private method

private sk_surface_new_backend_texture_as_render_target ( IntPtr context, GRBackendTextureDesc &desc, IntPtr propsZero ) : IntPtr
context System.IntPtr
desc GRBackendTextureDesc
propsZero IntPtr
return System.IntPtr
Ejemplo n.º 1
0
        public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (texture == null)
            {
                throw new ArgumentNullException(nameof(texture));
            }

            return(GetObject <SKSurface> (SkiaApi.sk_surface_new_backend_texture_as_render_target(context.Handle, texture.Handle, origin, sampleCount, colorType, colorspace?.Handle ?? IntPtr.Zero, props?.Handle ?? IntPtr.Zero)));
        }
Ejemplo n.º 2
0
 public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTextureDesc desc)
 {
     return(GetObject <SKSurface> (SkiaApi.sk_surface_new_backend_texture_as_render_target(context.Handle, ref desc, IntPtr.Zero)));
 }