Inheritance: SKObject
Exemple #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode) return;

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

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

            grContext = GRContext.Create (GRBackend.OpenGL);
        }
Exemple #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);
Exemple #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));
		}
Exemple #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);
Exemple #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));
		}
Exemple #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));
        }
Exemple #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)));
 }