/// <summary> /// Creates a shallow clone of the FICHV, except for the header table, which is regenerated. /// </summary> /// <param name="Original">Header to clone.</param> public FICHV CloneCore(FICHV Original) { FICHV f = new FICHV() { BitPix = Original.BitPix, Height = Original.Height, Width = Original.Width, WCS = Original.WCS }; f.Header = FitsBuilder.GetHeader(f); return(f); }
/// <summary> /// Changes the BITPIX entry of this header. /// </summary> /// <returns>This instance.</returns> /// <param name="BitPix">The new value for <see cref="BitPix"/>.</param> public FICHV ChangeBitPix(int BitPix) { this.BitPix = BitPix; Header = FitsBuilder.GetHeader(this); return(this); }