Beispiel #1
0
        public void PasteFromTopLeft(FreeImageAlgorithmsBitmap src, int left, int top, bool blending)
        {
            bool ret;

            if (blending)
            {
                ret = FreeImage.GradientBlendPasteFromTopLeft(this.Dib, src.Dib, left, top);
            }
            else
            {
                ret = FreeImage.PasteFromTopLeft(this.Dib, src.Dib, left, top);
            }

            if (ret == false)
            {
                string errorStr = String.Format(
                    "Can not paste freeimage. Dst image bpp {0}, Src image bpp {1}",
                    this.ColorDepth, src.ColorDepth);

                throw new FormatException(errorStr);
            }
        }
Beispiel #2
0
 public bool PasteFromTopLeft(FreeImageBitmap src, int left, int top)
 {
     return(FreeImage.PasteFromTopLeft(this.Dib, src.Dib, left, top));
 }
Beispiel #3
0
 public bool PasteFromTopLeft(FreeImageBitmap src, Point location)
 {
     return(FreeImage.PasteFromTopLeft(this.Dib, src.Dib, location.X, location.Y));
 }