1
Graphics / Re: Drawing a regularly updating line that changes
« on: May 21, 2015, 11:31:05 am »
Thanks so much. I had no idea mouse move existed.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
On windows, you can use this#include <windows.h>
string getPath() {
char buffer[MAX_PATH];
GetModuleFileName( NULL, buffer, MAX_PATH );
string::size_type pos = string( buffer ).find_last_of( "\\/" );
return string( buffer ).substr( 0, pos);
}
then writeImage img;
img.loadFromFile(getPath() + "\\myImg.png");
Use a relative path like "./filename".