Apachai.Effects.Core.UnaryPixelOp.Apply C# (CSharp) Method

Apply() public method

public Apply ( FastBitmap surface, Rectangle roi, int startIndex, int length ) : void
surface System.Drawing.FastBitmap
roi System.Drawing.Rectangle
startIndex int
length int
return void
        public void Apply(FastBitmap surface, Rectangle[] roi, int startIndex, int length)
        {
            Rectangle regionBounds = Utility.GetRegionBounds (roi, startIndex, length);

            if (regionBounds != Rectangle.Intersect (surface.GetBounds (), regionBounds))
                throw new ArgumentOutOfRangeException ("roi", "Region is out of bounds");

            unsafe {
                for (int x = startIndex; x < startIndex + length; ++x)
                    ApplyRectangle (surface, roi[x]);
            }
        }

Same methods

UnaryPixelOp::Apply ( PixelData color ) : PixelData
UnaryPixelOp::Apply ( FastBitmap dst, FastBitmap src, Rectangle roi ) : void
UnaryPixelOp::Apply ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, int scanLength ) : void
UnaryPixelOp::Apply ( FastBitmap surface, Rectangle roi ) : void
UnaryPixelOp::Apply ( PixelData dst, PixelData src, int length ) : void
UnaryPixelOp::Apply ( PixelData ptr, int length ) : void