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

Apply() public method

public Apply ( FastBitmap dst, FastBitmap src, Rectangle roi ) : void
dst System.Drawing.FastBitmap
src System.Drawing.FastBitmap
roi System.Drawing.Rectangle
return void
        public void Apply(FastBitmap dst, FastBitmap src, Rectangle roi)
        {
            PixelData* src_data_ptr = (PixelData*)src.DataPtr;
            int src_width = src.Width;
            PixelData* dst_data_ptr = (PixelData*)dst.DataPtr;
            int dst_width = dst.Width;

            for (int y = roi.Y; y < roi.Bottom; ++y) {
                PixelData* dstPtr = dst.GetPointAddressUnchecked (dst_data_ptr, dst_width, roi.X, y);
                PixelData* srcPtr = src.GetPointAddressUnchecked (src_data_ptr, src_width, roi.X, y);
                Apply (dstPtr, srcPtr, roi.Width);
            }
        }

Same methods

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