c# - How to set path for images to display it through name with different sequences for executable -
i'm trying animate 4 images different sequences, i'm wondering how set path display images name , use path executable. question is, have save pictures folder, , how path display images different sequences through variable name excusable file make available other users , not way:
bitmap img1, img2, img3, img4; img1 = new bitmap(@"d:\my_doc\folder\images\1.png", true); img2 = new bitmap(@"d:\my_doc\folder\images\2.png", true); img3 = new bitmap(@"d:\my_doc\folder\images\3.png", true); img4 = new bitmap(@"d:\my_doc\folder\images\4.png", true); picturebox1.image = img1;
follow article add images project resources.
after adding images can write codes this:
system.drawing.bitmap img1, img2, img3, img4; img1 = yourprojectsbasenamespace.properties.resources.img1 img2 = yourprojectsbasenamespace.properties.resources.img2 img3 = yourprojectsbasenamespace.properties.resources.img3 img4 = yourprojectsbasenamespace.properties.resources.img4
Comments
Post a Comment