public SeismicCrossSectionGenerator(Point botleftpoint, double regionw, double regionh, Bitmap3D createdBitmap3D)
        {
            this.bitmap3D = createdBitmap3D;

            pixelFormat = bitmap3D.getPixelFormat();
            numxregions = (int)bitmap3D.getBitmap3dWidth();
            numyregions = (int)bitmap3D.getBitmap3dHeight();
            regionBottomLeftPoint = botleftpoint;
            regionWidth = regionw;
            regionHeight = regionh;
        }
        protected double regionWidth, regionHeight; //All lat long coordinates defining how large the 3d bitmap represents in actual space.

        #endregion Fields

        #region Constructors

        public SeismicCrossSectionGenerator()
        {
            bitmap3D = Bitmap3D.createBitmap3DFromSeismicDirectory();

            pixelFormat = bitmap3D.getPixelFormat();
            numxregions = (int)bitmap3D.getBitmap3dWidth();
            numyregions = (int)bitmap3D.getBitmap3dHeight();
            regionWidth = bitmap3D.getBitmap3dRegionWidth();
            regionHeight = bitmap3D.getBitmap3dRegionHeight();
            regionBottomLeftPoint = bitmap3D.getBitmap3dPointOffset();
        }