Example #1
0
 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);
 }
Example #2
0
        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);
        }
Example #3
0
        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);
 }