protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (DesignMode) return; Reshape(); grContext = GRContext.Create(GRBackend.OpenGL); }
public static SKImage FromTexture(GRContext context, GRGlBackendTextureDesc desc) { return(FromTexture(context, desc, SKAlphaType.Premul, null, null)); }
public static SKImage FromTexture(GRContext context, GRBackendTextureDesc desc, SKAlphaType alpha) { return(FromTexture(context, desc, alpha, null, null)); }
public bool IsValid(GRContext context) => SkiaApi.sk_image_is_valid(Handle, context?.Handle ?? IntPtr.Zero);
public static SKImage FromAdoptedTexture(GRContext context, GRBackendTexture texture, SKColorType colorType) { return(FromAdoptedTexture(context, texture, GRSurfaceOrigin.BottomLeft, colorType, SKAlphaType.Premul, null)); }
public static SKImage FromAdoptedTexture(GRContext context, GRBackendTextureDesc desc) { return(FromAdoptedTexture(context, desc, SKAlphaType.Premul)); }
public static SKImage FromTexture(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType) { return(FromTexture(context, texture, origin, colorType, SKAlphaType.Premul, null, null, null)); }
public static SKSurface Create (GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProps props) { return GetObject<SKSurface> (SkiaApi.sk_surface_new_render_target (context.Handle, budgeted, ref info, sampleCount, ref props)); }
public static SKSurface Create(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKSurfaceProperties props) => Create((GRRecordingContext)context, texture, origin, sampleCount, colorType, props);
public static SKSurface Create(GRContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props) => Create((GRRecordingContext)context, texture, colorType, props);
public static SKSurface Create(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType) => Create((GRRecordingContext)context, texture, origin, colorType);
public static SKSurface Create(GRContext context, GRBackendTextureDesc desc) => Create(context, new GRBackendTexture(desc), desc.Origin, desc.SampleCount, desc.Config.ToColorType(), 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, GRSurfaceOrigin origin, SKColorType colorType) => Create((GRRecordingContext)context, renderTarget, origin, colorType);
public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTextureDesc desc, SKSurfaceProps props) => Create(context, new GRBackendTexture(desc), desc.Origin, desc.SampleCount, desc.Config.ToColorType(), new SKSurfaceProperties(props));
public static SKSurface Create (GRContext context, GRBackendTextureDesc desc, SKSurfaceProps props) { return GetObject<SKSurface> (SkiaApi.sk_surface_new_backend_texture (context.Handle, ref desc, ref props)); }
public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType) => Create(context, texture, origin, sampleCount, colorType);
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info) { return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref info, 0, IntPtr.Zero))); }
public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props) => Create(context, texture, colorType, props);
public static SKImage FromTexture(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha, SKColorSpace colorspace, SKImageTextureReleaseDelegate releaseProc) { return(FromTexture(context, texture, origin, colorType, alpha, colorspace, releaseProc, null)); }
public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props) => Create(context, texture, origin, sampleCount, colorType, colorspace, props);
public static SKImage FromAdoptedTexture(GRContext context, GRGlBackendTextureDesc desc, SKAlphaType alpha) { var texture = new GRBackendTexture(desc); return(FromAdoptedTexture(context, texture, desc.Origin, desc.Config.ToColorType(), alpha, null)); }
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProps props) => Create(context, budgeted, info, sampleCount, GRSurfaceOrigin.BottomLeft, new SKSurfaceProperties(props), false);
public static SKImage FromAdoptedTexture(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha) { return(FromAdoptedTexture(context, texture, origin, colorType, alpha, null)); }
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info) => Create((GRRecordingContext)context, budgeted, info);
// ToTextureImage public SKImage ToTextureImage(GRContext context) => ToTextureImage(context, null);
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin) => Create((GRRecordingContext)context, budgeted, info, sampleCount, origin);
public static SKImage FromTexture(GRContext context, GRBackendTextureDesc desc, SKAlphaType alpha, SKImageTextureReleaseDelegate releaseProc) { return(FromTexture(context, desc, alpha, releaseProc, null)); }
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProperties props) => Create((GRRecordingContext)context, budgeted, info, sampleCount, props);
public override void PrepareOpenGL() { base.PrepareOpenGL (); grContext = GRContext.Create (GRBackend.OpenGL); }
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin, SKSurfaceProperties props, bool shouldCreateWithMips) => Create((GRRecordingContext)context, budgeted, info, sampleCount, origin, props, false);
public static SKSurface Create (GRContext context, GRBackendRenderTargetDesc desc, SKSurfaceProps props) { return GetObject<SKSurface> (SkiaApi.sk_surface_new_backend_render_target (context.Handle, ref desc, ref props)); }
public static SKSurface Create(GRContext context, CoreAnimation.CAMetalLayer layer, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props, out CoreAnimation.ICAMetalDrawable drawable) => Create((GRRecordingContext)context, layer, origin, sampleCount, colorType, colorspace, props, out drawable);
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)); }
public static SKImage FromTexture(GRContext context, GRGlBackendTextureDesc desc, SKAlphaType alpha, SKImageTextureReleaseDelegate releaseProc, object releaseContext) { var texture = new GRBackendTexture(desc); return(FromTexture(context, texture, desc.Origin, desc.Config.ToColorType(), alpha, null, releaseProc, releaseContext)); }
public static SKSurface Create (GRContext context, bool budgeted, SKImageInfo info) { return GetObject<SKSurface> (SkiaApi.sk_surface_new_render_target (context.Handle, budgeted, ref info, 0, IntPtr.Zero)); }
public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProps props) { return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref info, sampleCount, ref props))); }