sk_surface_new_render_target() private method

private sk_surface_new_render_target ( IntPtr context, bool budgeted, SKImageInfo &info, int sampleCount, IntPtr propsZero ) : IntPtr
context System.IntPtr
budgeted bool
info SKImageInfo
sampleCount int
propsZero IntPtr
return System.IntPtr
        public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, GRSurfaceOrigin origin, SKSurfaceProperties props, bool shouldCreateWithMips)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var cinfo = SKImageInfoNative.FromManaged(ref info);

            return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref cinfo, sampleCount, origin, props?.Handle ?? IntPtr.Zero, shouldCreateWithMips)));
        }
示例#2
0
        public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info)
        {
            var cinfo = SKImageInfoNative.FromManaged(ref info);

            return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref cinfo, 0, IntPtr.Zero)));
        }
示例#3
0
        public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount, SKSurfaceProps props)
        {
            var cinfo = SKImageInfoNative.FromManaged(ref info);

            return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref cinfo, sampleCount, ref props)));
        }
示例#4
0
 public static SKSurface Create(GRContext context, bool budgeted, SKImageInfo info, int sampleCount)
 {
     return(GetObject <SKSurface> (SkiaApi.sk_surface_new_render_target(context.Handle, budgeted, ref info, sampleCount, IntPtr.Zero)));
 }