Algorithmix.Shred.GetBitmap C# (CSharp) Method

GetBitmap() public method

Load a bitmap image of the shred with a specific orientation
public GetBitmap ( Orientation orientation = Orientation.Regular ) : Bitmap
orientation Orientation Specific Orientation, regular or reversed, default is regular
return System.Drawing.Bitmap
        public Bitmap GetBitmap(Orientation orientation = Orientation.Regular)
        {
            Bitmap bitmap = new Bitmap(Filepath);
            if (orientation == Orientation.Reversed)
            {
                Filter.ReverseInPlace(bitmap);
            }
            return bitmap;
        }