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

            if (DesignMode) return;

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

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

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