Beispiel #1
0
        // CreateColor

        public static SKShader CreateColor(SKColor color) =>
        GetObject(SkiaApi.sk_shader_new_color((uint)color));
Beispiel #2
0
 public void GetMatrix(ref SKMatrix matrix)
 {
     SkiaApi.sk_3dview_get_matrix(Handle, ref matrix);
 }
Beispiel #3
0
 public void Restore()
 {
     SkiaApi.sk_3dview_restore(Handle);
 }
Beispiel #4
0
 public static void PreConcat(ref SKMatrix target, SKMatrix matrix)
 {
     SkiaApi.sk_matrix_pre_concat(ref target, ref matrix);
 }
Beispiel #5
0
 public static void MapRect(ref SKMatrix matrix, out SKRect dest, ref SKRect source)
 {
     SkiaApi.sk_matrix_map_rect(ref matrix, out dest, ref source);
 }
Beispiel #6
0
 public bool Preserves2DAxisAlignment(float epsilon)
 {
     return(SkiaApi.sk_matrix44_preserves_2d_axis_alignment(Handle, epsilon));
 }
Beispiel #7
0
 public bool TryInvert(out SKMatrix inverse)
 {
     return(SkiaApi.sk_matrix_try_invert(ref this, out inverse) != 0);
 }
Beispiel #8
0
 public void Abort() =>
 SkiaApi.sk_document_abort(Handle);
Beispiel #9
0
 public SKCanvas BeginPage(float width, float height, SKRect content) =>
 GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, &content), false);
Beispiel #10
0
 public SKCanvas BeginPage(float width, float height, SKRect content)
 {
     return(GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, ref content)));
 }
Beispiel #11
0
 public static SKDocument CreatePdf(string path, float dpi = DefaultRasterDpi)
 {
     return(GetObject <SKDocument> (SkiaApi.sk_document_create_pdf_from_filename(path, dpi)));
 }
Beispiel #12
0
 public SKCanvas BeginPage(float width, float height)
 {
     return(GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, IntPtr.Zero)));
 }
Beispiel #13
0
 protected override void DisposeNative() =>
 SkiaApi.sk_fontstyle_delete(Handle);
Beispiel #14
0
 public SKFontStyle(int weight, int width, SKFontStyleSlant slant)
     : this(SkiaApi.sk_fontstyle_new(weight, width, slant), true)
 {
 }
 public SKImage Subset(SKRectI subset)
 {
     return(GetObject <SKImage> (SkiaApi.sk_image_make_subset(Handle, ref subset)));
 }
Beispiel #16
0
 public void EndPage() =>
 SkiaApi.sk_document_end_page(Handle);
 public SKImage ToRasterImage()
 {
     return(GetObject <SKImage> (SkiaApi.sk_image_make_non_texture_image(Handle)));
 }
Beispiel #18
0
 public void Close() =>
 SkiaApi.sk_document_close(Handle);
Beispiel #19
0
 public double Determinant()
 {
     return(SkiaApi.sk_matrix44_determinant(Handle));
 }
 public SKData Encode()
 {
     return(GetObject <SKData> (SkiaApi.sk_image_encode(Handle)));
 }
Beispiel #21
0
 public static void Concat(ref SKMatrix target, ref SKMatrix first, ref SKMatrix second)
 {
     SkiaApi.sk_matrix_concat(ref target, ref first, ref second);
 }
 public SKData Encode(SKEncodedImageFormat format, int quality)
 {
     return(GetObject <SKData> (SkiaApi.sk_image_encode_specific(Handle, format, quality)));
 }
Beispiel #23
0
 public static void PostConcat(ref SKMatrix target, ref SKMatrix matrix)
 {
     SkiaApi.sk_matrix_post_concat(ref target, ref matrix);
 }
 public SKShader ToShader(SKShaderTileMode tileX, SKShaderTileMode tileY)
 {
     return(GetObject <SKShader> (SkiaApi.sk_image_make_shader(Handle, tileX, tileY, IntPtr.Zero)));
 }
Beispiel #25
0
 public float MapRadius(float radius)
 {
     return(SkiaApi.sk_matrix_map_radius(ref this, radius));
 }
 public SKShader ToShader(SKShaderTileMode tileX, SKShaderTileMode tileY, SKMatrix localMatrix)
 {
     return(GetObject <SKShader> (SkiaApi.sk_image_make_shader(Handle, tileX, tileY, ref localMatrix)));
 }
Beispiel #27
0
 public void Save()
 {
     SkiaApi.sk_3dview_save(Handle);
 }
 public bool ReadPixels(SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY, SKImageCachingHint cachingHint)
 {
     return(SkiaApi.sk_image_read_pixels(Handle, ref dstInfo, dstPixels, (IntPtr)dstRowBytes, srcX, srcY, cachingHint));
 }
Beispiel #29
0
 public void Translate(float x, float y, float z)
 {
     SkiaApi.sk_3dview_translate(Handle, x, y, z);
 }
Beispiel #30
0
        // CreateEmpty

        public static SKShader CreateEmpty() =>
        GetObject(SkiaApi.sk_shader_new_empty());