private void Initialize(IMap2 parent) { _parent = parent; ColorNumber = parent.BytesPerPixel; _blueOffset = parent.BlueOffset; _greenOffset = parent.GreenOffset; _redOffset = parent.RedOffset; }
public PixelReference(IMap2 parent, int row, int column) : base() { Initialize(parent); _offset = (parent.RowOffset(row) + column) * _ncolors; }
public PixelReference(IMap2 parent, int offset) { Initialize(parent); _offset = offset * _ncolors; }