Get the path of a file inside the project in the form of a string

0

I am using a method that in its parameters I inform a path of an image, Example:

Meu_Metodo("image\test.png");

But this image is within Resources , as you can see in this image:

WhatdoIdotogetthepathofthisimagewithinmyresources"in the form of string "

    
asked by anonymous 26.07.2017 / 17:23

1 answer

0

If your file is in the project root and the image in a folder:

Meu_Metodo("Resources/Image1.png");
    
27.07.2017 / 13:46