Inheritance: SKObject
Exemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode) return;

            Reshape();
            grContext = GRContext.Create(GRBackend.OpenGL);
        }
Exemplo n.º 2
0
 public static SKImage FromTexture(GRContext context, GRGlBackendTextureDesc desc)
 {
     return(FromTexture(context, desc, SKAlphaType.Premul, null, null));
 }
Exemplo n.º 3
0
 public static SKImage FromTexture(GRContext context, GRBackendTextureDesc desc, SKAlphaType alpha)
 {
     return(FromTexture(context, desc, alpha, null, null));
 }
Exemplo n.º 4
0
 public bool IsValid(GRContext context) =>
 SkiaApi.sk_image_is_valid(Handle, context?.Handle ?? IntPtr.Zero);
Exemplo n.º 5
0
 public static SKImage FromAdoptedTexture(GRContext context, GRBackendTexture texture, SKColorType colorType)
 {
     return(FromAdoptedTexture(context, texture, GRSurfaceOrigin.BottomLeft, colorType, SKAlphaType.Premul, null));
 }
Exemplo n.º 6
0
 public static SKImage FromAdoptedTexture(GRContext context, GRBackendTextureDesc desc)
 {
     return(FromAdoptedTexture(context, desc, SKAlphaType.Premul));
 }
Exemplo n.º 7
0
 public static SKImage FromTexture(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType)
 {
     return(FromTexture(context, texture, origin, colorType, SKAlphaType.Premul, null, null, null));
 }
Exemplo n.º 8
0
		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));
		}
Exemplo n.º 9
0
 public static SKSurface Create(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, int sampleCount, SKColorType colorType, SKSurfaceProperties props) =>
 Create((GRRecordingContext)context, texture, origin, sampleCount, colorType, props);
Exemplo n.º 10
0
 public static SKSurface Create(GRContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props) =>
 Create((GRRecordingContext)context, texture, colorType, props);
Exemplo n.º 11
0
 public static SKSurface Create(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType) =>
 Create((GRRecordingContext)context, texture, origin, colorType);
Exemplo n.º 12
0
 public static SKSurface Create(GRContext context, GRBackendTextureDesc desc) =>
 Create(context, new GRBackendTexture(desc), desc.Origin, desc.SampleCount, desc.Config.ToColorType(), null, null);
Exemplo n.º 13
0
 public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType, SKColorSpace colorspace, SKSurfaceProperties props) =>
 Create((GRRecordingContext)context, renderTarget, origin, colorType, colorspace, props);
Exemplo n.º 14
0
 public static SKSurface Create(GRContext context, GRBackendRenderTarget renderTarget, GRSurfaceOrigin origin, SKColorType colorType) =>
 Create((GRRecordingContext)context, renderTarget, origin, colorType);
Exemplo n.º 15
0
 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));
Exemplo n.º 16
0
		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));
		}
Exemplo n.º 17
0
 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)));
 }
Exemplo n.º 19
0
 public static SKSurface CreateAsRenderTarget(GRContext context, GRBackendTexture texture, SKColorType colorType, SKSurfaceProperties props) =>
 Create(context, texture, colorType, props);
Exemplo n.º 20
0
 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));
 }
Exemplo n.º 21
0
 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);
Exemplo n.º 22
0
        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));
        }
Exemplo n.º 23
0
 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);
Exemplo n.º 24
0
 public static SKImage FromAdoptedTexture(GRContext context, GRBackendTexture texture, GRSurfaceOrigin origin, SKColorType colorType, SKAlphaType alpha)
 {
     return(FromAdoptedTexture(context, texture, origin, colorType, alpha, null));
 }
Exemplo n.º 25
0
 public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info) =>
 Create((GRRecordingContext)context, budgeted, info);
Exemplo n.º 26
0
        // ToTextureImage

        public SKImage ToTextureImage(GRContext context) =>
        ToTextureImage(context, null);
Exemplo n.º 27
0
 public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin) =>
 Create((GRRecordingContext)context, budgeted, info, sampleCount, origin);
Exemplo n.º 28
0
 public static SKImage FromTexture(GRContext context, GRBackendTextureDesc desc, SKAlphaType alpha, SKImageTextureReleaseDelegate releaseProc)
 {
     return(FromTexture(context, desc, alpha, releaseProc, null));
 }
Exemplo n.º 29
0
 public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProperties props) =>
 Create((GRRecordingContext)context, budgeted, info, sampleCount, props);
Exemplo n.º 30
0
        public override void PrepareOpenGL()
        {
            base.PrepareOpenGL ();

            grContext = GRContext.Create (GRBackend.OpenGL);
        }
Exemplo n.º 31
0
 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);
Exemplo n.º 32
0
		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));
		}
Exemplo n.º 33
0
 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);
Exemplo n.º 34
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));
		}
Exemplo n.º 35
0
        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));
        }
Exemplo n.º 36
0
		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)));
 }