void Attach(IBitmapSrc sourceImage,
                    PixelBlender32 outputPxBlender,
                    int distanceBetweenPixelsInclusive,
                    int arrayElemOffset,
                    int bitsPerPixel)
        {
            _sourceImage = sourceImage;
            SetDimmensionAndFormat(sourceImage.Width,
                                   sourceImage.Height,
                                   sourceImage.Stride,
                                   bitsPerPixel,
                                   distanceBetweenPixelsInclusive);

            int srcOffset32 = sourceImage.GetBufferOffsetXY32(0, 0);

            int[] buffer = sourceImage.GetOrgInt32Buffer();
            SetBuffer(buffer, srcOffset32 + arrayElemOffset);

            this.OutputPixelBlender = outputPxBlender;
        }
Beispiel #2
0
 public int[] GetOrgInt32Buffer()
 {
     return(_src.GetOrgInt32Buffer());
 }