Пример #1
0
        private static void Draw(this floydSteinberg _p0, Image dst, image.Rectangle r, image.Image src, image.Point sp)
        {
            clip(dst, _addr_r, src, _addr_sp, null, _addr_null);
            if (r.Empty())
            {
                return ;
            }

            drawPaletted(dst, r, src, sp, true);

        }
Пример #2
0
 // Draw implements the Drawer interface by calling the Draw function with this
 // Op.
 public static void Draw(this Op op, Image dst, image.Rectangle r, image.Image src, image.Point sp)
 {
     DrawMask(dst, r, src, sp, null, new image.Point(), op);
 }
Пример #3
0
 // DrawYCbCr draws the YCbCr source image on the RGBA destination image with
 // r.Min in dst aligned with sp in src. It reports whether the draw was
 // successful. If it returns false, no dst pixels were changed.
 //
 // This function assumes that r is entirely within dst's bounds and the
 // translation of r from dst coordinate space to src coordinate space is
 // entirely within src's bounds.
 public static bool DrawYCbCr(ptr <image.RGBA> _addr_dst, image.Rectangle r, ptr <image.YCbCr> _addr_src, image.Point sp)
 {
     bool            ok  = default;
     ref image.RGBA  dst = ref _addr_dst.val;