save header and brush previews in same name folder when exporting ppbr
This commit is contained in:
@@ -60,7 +60,7 @@ bool Image::load_file(std::string filename)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Image::save_png(const std::string& path)
|
||||
bool Image::save_png(const std::string& path) const noexcept
|
||||
{
|
||||
bool ret = stbi_write_png(path.c_str(), width, height, comp, data(), 0);
|
||||
if (!ret)
|
||||
@@ -68,7 +68,7 @@ bool Image::save_png(const std::string& path)
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool Image::save_jpg(const std::string& path, int quality)
|
||||
bool Image::save_jpg(const std::string& path, int quality) const noexcept
|
||||
{
|
||||
bool ret = stbi_write_jpg(path.c_str(), width, height, comp, data(), quality);
|
||||
if (!ret)
|
||||
|
||||
Reference in New Issue
Block a user