Renamed new Save method to Thumbnail

This commit is contained in:
Jonathan Thomas
2014-05-20 00:57:27 -05:00
parent e0c428c347
commit ac4988e92b
3 changed files with 9 additions and 9 deletions

View File

@@ -258,17 +258,17 @@ namespace openshot
/// Save the frame image to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG)
void Save(string path, float scale);
/// Save the frame image with tons of options to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG).
/// This method allows for masks, overlays, background color, and much more accurate resizing (including padding and centering)
void Save(string path, int new_width, int new_height, string mask_path, string overlay_path,
string background_color, bool ignore_aspect) throw(InvalidFile);
/// Set frame number
void SetFrameNumber(int number);
/// Set Pixel Aspect Ratio
void SetPixelRatio(int num, int den);
/// Thumbnail the frame image with tons of options to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG).
/// This method allows for masks, overlays, background color, and much more accurate resizing (including padding and centering)
void Thumbnail(string path, int new_width, int new_height, string mask_path, string overlay_path,
string background_color, bool ignore_aspect) throw(InvalidFile);
/// Make colors in a specific range transparent
void TransparentColors(string color, double fuzz);

View File

@@ -505,8 +505,8 @@ void Frame::Save(string path, float scale)
copy.write(path);
}
// Save the frame image to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG)
void Frame::Save(string path, int new_width, int new_height, string mask_path, string overlay_path,
// Thumbnail the frame image to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG)
void Frame::Thumbnail(string path, int new_width, int new_height, string mask_path, string overlay_path,
string background_color, bool ignore_aspect) throw(InvalidFile) {
// Make a copy of the image (since we might resize it)

File diff suppressed because one or more lines are too long