ZXing.PlanarYUVLuminanceSource.crop C# (CSharp) Method

crop() public method

Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if CropSupported is true.
public crop ( int left, int top, int width, int height ) : ZXing.LuminanceSource
left int The left coordinate, 0 <= left < Width.
top int The top coordinate, 0 <= top <= Height.
width int The width of the rectangle to crop.
height int The height of the rectangle to crop.
return ZXing.LuminanceSource
      override public LuminanceSource crop(int left, int top, int width, int height)
      {
         return new PlanarYUVLuminanceSource(yuvData,
                                             dataWidth,
                                             dataHeight,
                                             this.left + left,
                                             this.top + top,
                                             width,
                                             height,
                                             false);
      }