public static SKSurface Create(GRContext context, GRBackendRenderTargetDesc desc, SKSurfaceProps props) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var renderTarget = new GRBackendRenderTarget(context.Backend, desc); return(Create(context, renderTarget, desc.Origin, desc.Config.ToColorType(), null, new SKSurfaceProperties(props))); }
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (renderTarget == null) { throw new ArgumentNullException(nameof(renderTarget)); } return(GetObject <SKSurface> (SkiaApi.sk_surface_new_backend_render_target(context.Handle, renderTarget.Handle, origin, colorType, colorspace?.Handle ?? IntPtr.Zero, props?.Handle ?? IntPtr.Zero))); }
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKSurfaceProperties props) => Create(context, renderTarget, origin, colorType, null, props);
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace) => Create(context, renderTarget, origin, colorType, colorspace, null);
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, SKColorType colorType) => Create(context, renderTarget, GRSurfaceOrigin.BottomLeft, colorType, null, null);
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType) { return(Create(context, renderTarget, origin, colorType, null)); }
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, SKColorType colorType, SKSurfaceProps props) { return(Create(context, renderTarget, GRSurfaceOrigin.BottomLeft, colorType, null, props)); }
public static SKSurface Create(GRRecordingContext context, GRBackendRenderTarget renderTarget, SKColorType colorType, SKSurfaceProperties props) => Create(context, renderTarget, GRSurfaceOrigin.BottomLeft, colorType, null, props);
public static SKSurface Create(GRRecordingContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType) => Create(context, renderTarget, origin, colorType, null, null);
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props) => Create((GRRecordingContext)context, renderTarget, origin, colorType, colorspace, props);
public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, SKColorType colorType) => Create((GRRecordingContext)context, renderTarget, colorType);