Exemplo n.º 1
0
        public override bool Equals(Object o)
        {
            if ((o == null) || !(o is SinglePixelPackedSampleModel))
            {
                return(false);
            }

            SinglePixelPackedSampleModel that = (SinglePixelPackedSampleModel)o;

            return(this.Width_Renamed == that.Width_Renamed && this.Height_Renamed == that.Height_Renamed && this.NumBands_Renamed == that.NumBands_Renamed && this.DataType_Renamed == that.DataType_Renamed && Arrays.Equals(this.BitMasks_Renamed, that.BitMasks_Renamed) && Arrays.Equals(this.BitOffsets_Renamed, that.BitOffsets_Renamed) && Arrays.Equals(this.BitSizes, that.BitSizes) && this.MaxBitSize == that.MaxBitSize && this.ScanlineStride_Renamed == that.ScanlineStride_Renamed);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new SinglePixelPackedSampleModel with the specified
        /// width and height.  The new SinglePixelPackedSampleModel will have the
        /// same storage data type and bit masks as this
        /// SinglePixelPackedSampleModel. </summary>
        /// <param name="w"> the width of the resulting <code>SampleModel</code> </param>
        /// <param name="h"> the height of the resulting <code>SampleModel</code> </param>
        /// <returns> a <code>SinglePixelPackedSampleModel</code> with the
        ///         specified width and height. </returns>
        /// <exception cref="IllegalArgumentException"> if <code>w</code> or
        ///         <code>h</code> is not greater than 0 </exception>
        public override SampleModel CreateCompatibleSampleModel(int w, int h)
        {
            SampleModel sampleModel = new SinglePixelPackedSampleModel(DataType_Renamed, w, h, BitMasks_Renamed);

            return(sampleModel);
        }