where the directories image save if i want to display

hi guys..

i see this tutorial and display image. http://processing.org/examples/loaddisplayimage.html

but where the directories file image ?

Answers

  • println( dataPath("") );
    exit();
    
  • sorry i mean. if i have a image file . example "abc.jpg" ... where i was save the "abc.jpg" to can access from processing ?

  • edited October 2013

    I've already answered that. Just use dataPath("")! X_X
    For a file called "abc.jpg", use -> loadImage( dataPath("abc.jpg") );.

  • :( sorry my internet was slow down. i think nobody here comment this post.

    so.. if use dataPath("") i can save my image file to anywhere directories right ? and the processing will find self the image location ? CMIIW

  • No, it's not it! [..] Function dataPath("") gives the path of where we put program's resources!
    It means the subfolder "/data"! 3:-O

  • Actually, loadImage("abc.jpg") is enough, since by default it load it from the dataPath().

    lovelyazka, you have to put the images you want to load in a folder named data inside the sketch folder (the one where the .pde file is saved).

Sign In or Register to comment.