public DirectionalBitmap(Bitmap bitmapEast) { _bitmapEast = new VehicleBitmap(bitmapEast); _bitmapSouth = new VehicleBitmap(_bitmapEast.Bitmap.Get90DegreesRotatedClone()); _bitmapWest = new VehicleBitmap(_bitmapSouth.Bitmap.Get90DegreesRotatedClone()); _bitmapNorth = new VehicleBitmap(_bitmapWest.Bitmap.Get90DegreesRotatedClone()); _southEast = new VehicleBitmap(_bitmapEast.Bitmap.RotateImage(45)); _southWest = new VehicleBitmap(_southEast.Bitmap.Get90DegreesRotatedClone()); _northWest = new VehicleBitmap(_southWest.Bitmap.Get90DegreesRotatedClone()); _northEast = new VehicleBitmap(_northWest.Bitmap.Get90DegreesRotatedClone()); }
public DirectionalBitmap(Image bitmapEast) { _bitmapEast = new VehicleBitmap(bitmapEast); _bitmapSouth = new VehicleBitmap(_bitmapEast.Bitmap.RotateImage(45)); _bitmapWest = new VehicleBitmap(_bitmapSouth.Bitmap.RotateImage(45)); _bitmapNorth = new VehicleBitmap(_bitmapWest.Bitmap.RotateImage(45)); _southEast = new VehicleBitmap(_bitmapEast.Bitmap.RotateImage(45)); _southWest = new VehicleBitmap(_southEast.Bitmap.RotateImage(45)); _northWest = new VehicleBitmap(_southWest.Bitmap.RotateImage(45)); _northEast = new VehicleBitmap(_northWest.Bitmap.RotateImage(45)); }