public static void RgbaAffine(out byte dst, int x0, int y0, int x1, int y1, int dst_rowstride, out byte src, int src_width, int src_height, int src_rowstride, double[] affine, Art.FilterLevel level, Art.AlphaGamma alphagamma) { art_rgb_rgba_affine(out dst, x0, y0, x1, y1, dst_rowstride, out src, src_width, src_height, src_rowstride, affine, (int)level, alphagamma == null ? IntPtr.Zero : alphagamma.Handle); }
public static byte SvpAa(Art.SVP svp, int x0, int y0, int x1, int y1, uint fg_color, uint bg_color, int rowstride, Art.AlphaGamma alphagamma) { byte buf; IntPtr native_svp = GLib.Marshaller.StructureToPtrAlloc(svp); art_rgb_svp_aa(native_svp, x0, y0, x1, y1, fg_color, bg_color, out buf, rowstride, alphagamma == null ? IntPtr.Zero : alphagamma.Handle); svp = Art.SVP.New(native_svp); Marshal.FreeHGlobal(native_svp); return(buf); }
public static byte PixbufAffine(int x0, int y0, int x1, int y1, int dst_rowstride, Art.PixBuf pixbuf, double[] affine, Art.FilterLevel level, Art.AlphaGamma alphagamma) { byte dst; art_rgb_pixbuf_affine(out dst, x0, y0, x1, y1, dst_rowstride, pixbuf == null ? IntPtr.Zero : pixbuf.Handle, affine, (int)level, alphagamma == null ? IntPtr.Zero : alphagamma.Handle); return(dst); }
public Render(int x0, int y0, int x1, int y1, out byte pixels, int rowstride, int n_chan, int depth, Art.AlphaType alpha_type, Art.AlphaGamma alphagamma) { Raw = art_render_new(x0, y0, x1, y1, out pixels, rowstride, n_chan, depth, (int)alpha_type, alphagamma == null ? IntPtr.Zero : alphagamma.Handle); }