In my method, I'm trying to save an image in a folder in the directory of my project. I have tried just putting the direct filepath of the folder, but that gives me an error when the project runs.
Is there a built-in extension of some kind in c# that would allow me to save this image in a folder in my directory; or way to simply access my directory without drilling to where my project is saved on my computer?
private void CreateBarcode()
{
    var bitmapImage = new Bitmap(500,300);
    var g = Graphics.FromImage(bitmapImage);
    g.Clear(Color.White);
    UPCbarcode barcode = new UPCbarcode(UPCbarcode.RandomGeneratedNumber(), bitmapImage, g);
    string filepath=@"images/image1.jpg";
    bitmapImage.Save(filepath,System.Drawing.Imaging.ImageFormat.Jpeg);
}