// CreateColor public static SKShader CreateColor(SKColor color) => GetObject(SkiaApi.sk_shader_new_color((uint)color));
public void GetMatrix(ref SKMatrix matrix) { SkiaApi.sk_3dview_get_matrix(Handle, ref matrix); }
public void Restore() { SkiaApi.sk_3dview_restore(Handle); }
public static void PreConcat(ref SKMatrix target, SKMatrix matrix) { SkiaApi.sk_matrix_pre_concat(ref target, ref matrix); }
public static void MapRect(ref SKMatrix matrix, out SKRect dest, ref SKRect source) { SkiaApi.sk_matrix_map_rect(ref matrix, out dest, ref source); }
public bool Preserves2DAxisAlignment(float epsilon) { return(SkiaApi.sk_matrix44_preserves_2d_axis_alignment(Handle, epsilon)); }
public bool TryInvert(out SKMatrix inverse) { return(SkiaApi.sk_matrix_try_invert(ref this, out inverse) != 0); }
public void Abort() => SkiaApi.sk_document_abort(Handle);
public SKCanvas BeginPage(float width, float height, SKRect content) => GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, &content), false);
public SKCanvas BeginPage(float width, float height, SKRect content) { return(GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, ref content))); }
public static SKDocument CreatePdf(string path, float dpi = DefaultRasterDpi) { return(GetObject <SKDocument> (SkiaApi.sk_document_create_pdf_from_filename(path, dpi))); }
public SKCanvas BeginPage(float width, float height) { return(GetObject <SKCanvas> (SkiaApi.sk_document_begin_page(Handle, width, height, IntPtr.Zero))); }
protected override void DisposeNative() => SkiaApi.sk_fontstyle_delete(Handle);
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))); }
public void EndPage() => SkiaApi.sk_document_end_page(Handle);
public SKImage ToRasterImage() { return(GetObject <SKImage> (SkiaApi.sk_image_make_non_texture_image(Handle))); }
public void Close() => SkiaApi.sk_document_close(Handle);
public double Determinant() { return(SkiaApi.sk_matrix44_determinant(Handle)); }
public SKData Encode() { return(GetObject <SKData> (SkiaApi.sk_image_encode(Handle))); }
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))); }
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))); }
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))); }
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)); }
public void Translate(float x, float y, float z) { SkiaApi.sk_3dview_translate(Handle, x, y, z); }
// CreateEmpty public static SKShader CreateEmpty() => GetObject(SkiaApi.sk_shader_new_empty());